diff --git a/changelog/items/key-updates/pinner.md b/changelog/items/key-updates/pinner.md new file mode 100644 index 00000000..19e15ddb --- /dev/null +++ b/changelog/items/key-updates/pinner.md @@ -0,0 +1 @@ +- Add Pinner service to the portal stack. Activate it by selecting the 'p' module. diff --git a/dc b/dc index d54bbf2d..de8f9e9a 100755 --- a/dc +++ b/dc @@ -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 diff --git a/docker-compose.pinner.yml b/docker-compose.pinner.yml new file mode 100644 index 00000000..5df54d4e --- /dev/null +++ b/docker-compose.pinner.yml @@ -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