Merge pull request #2096 from SkynetLabs/ivo/pinner
Add Pinner to the stack.
This commit is contained in:
commit
7b9f1ebac5
|
@ -0,0 +1 @@
|
||||||
|
- Add Pinner service to the portal stack. Activate it by selecting the 'p' module.
|
5
dc
5
dc
|
@ -45,6 +45,11 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do
|
||||||
if [[ ${PORTAL_MODULES:i-1:1} == "u" ]]; then
|
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"
|
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.blocker.yml -f docker-compose.abuse-scanner.yml"
|
||||||
fi
|
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
|
done
|
||||||
|
|
||||||
# override file if exists
|
# override file if exists
|
||||||
|
|
|
@ -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
|
Reference in New Issue