Files
nas-compose/notifications.docker-compose.yml
2022-12-26 14:19:06 +01:00

35 lines
787 B
YAML

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']
networks:
- gotify
- traefik
volumes:
- gotify:/app/data
secrets:
- admin_password
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.routers.gotify.rule: HostRegexp(`gotify{subdomain:(\.[a-z0-9-]+)?}.dedicated.contact`)
networks:
gotify:
name: gotify
traefik:
external: true
volumes:
gotify:
driver_opts:
type: none
o: bind
device: ${MOUNT_DIR?}/gotify/data/
secrets:
admin_password:
file: ${MOUNT_DIR?}/gotify/secrets/admin_password