Entrypoint for the auto-conf

This commit is contained in:
Colin Hebert
2022-12-26 15:02:28 +01:00
parent 5a4fea851f
commit d9f7f506b8
2 changed files with 37 additions and 3 deletions

View File

@@ -3,13 +3,15 @@ name: Notifications
services:
gotify:
image: gotify/server
# Hack to get around the lack of secret support in Gotify
entrypoint: ['/bin/sh', '-c', 'GOTIFY_DEFAULTUSER_PASS=$(cat /run/secrets/admin_password) ./gotify-app']
entrypoint: ./entrypoint.sh
networks:
- gotify
- traefik
volumes:
- gotify:/app/data
configs:
- source: gotify_entrypoint
target: /app/entrypoint.sh
secrets:
- admin_password
restart: unless-stopped
@@ -30,6 +32,10 @@ volumes:
o: bind
device: ${MOUNT_DIR?}/gotify/data/
configs:
gotify_entrypoint:
file: ${MOUNT_DIR?}/gotify/config/entrypoint.sh
secrets:
admin_password:
file: ${MOUNT_DIR?}/gotify/secrets/admin_password
file: ${MOUNT_DIR?}/gotify/secrets/admin_password