Add Pinner service to the stack.

This commit is contained in:
Ivaylo Novakov 2022-05-10 17:13:50 +02:00
parent 32e5130504
commit 77c09bf902
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
2 changed files with 36 additions and 0 deletions

5
dc
View File

@ -45,6 +45,11 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do
if [[ ${PORTAL_MODULES:i-1:1} == "u" ]]; then
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.blocker.yml -f docker-compose.abuse-scanner.yml"
fi
# pinner module - alias "p"
if [[ ${PORTAL_MODULES:i-1:1} == "p" ]]; then
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.pinner.yml"
fi
done
# override file if exists

31
docker-compose.pinner.yml Normal file
View File

@ -0,0 +1,31 @@
version: "3.7"
x-logging: &default-logging
driver: json-file
options:
max-size: "10m"
max-file: "3"
services:
health-check:
environment:
- BLOCKER_HOST=10.10.10.110
- BLOCKER_PORT=4000
blocker:
# uncomment "build" and comment out "image" to build from sources
# build: https://github.com/SkynetLabs/pinner.git#main
image: skynetlabs/pinner
container_name: pinner
restart: unless-stopped
logging: *default-logging
env_file:
- .env
expose:
- 4000
networks:
shared:
ipv4_address: 10.10.10.130
depends_on:
- mongo
- sia