Merge pull request #2096 from SkynetLabs/ivo/pinner

Add Pinner to the stack.
This commit is contained in:
Karol Wypchło 2022-05-24 15:07:22 +02:00 committed by GitHub
commit 7b9f1ebac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1 @@
- Add Pinner service to the portal stack. Activate it by selecting the 'p' module.

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

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

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