mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 23:28:32 +01:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
services:
|
|
ntfy:
|
|
image: binwiederhier/ntfy
|
|
container_name: ntfy
|
|
command:
|
|
- serve
|
|
environment:
|
|
NTFY_BASE_URL: "https://push.atlantishq.de"
|
|
NTFY_BEHIND_PROXY: "true"
|
|
NTFY_AUTH_FILE: "/userdb/user.db"
|
|
NTFY_AUTH_DEFAULT_ACCESS: "deny-all"
|
|
volumes:
|
|
- /data/ntfy/cache/ntfy:/var/cache/ntfy
|
|
- /data/ntfy/etc/ntfy:/etc/ntfy
|
|
- /data/ntfy/userdb/:/userdb/
|
|
ports:
|
|
- 4001:80
|
|
healthcheck: # optional: remember to adapt the host:port to your environment
|
|
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
|
|
interval: 60s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
restart: unless-stopped
|
|
ntfy-api:
|
|
image: harbor-registry.atlantishq.de/atlantishq/ntfy-api
|
|
ports:
|
|
- 4002:5000
|
|
depends_on:
|
|
- ntfy
|
|
environment:
|
|
ACCESS_TOKEN: {{ ntfy_api_access_token }}
|
|
NTFY_AUTH_FILE: "/userdb/user.db"
|
|
volumes:
|
|
- /data/ntfy/userdb/:/userdb/
|
|
- /data/ntfy/instance/:/app/instance/
|