Entrypoint for the auto-conf
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user