mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 07:58:34 +01:00
feat: ntfy, new dispatcher & atlantis-verify update
This commit is contained in:
38
roles/docker-deployments/templates/ntfy.yaml
Normal file
38
roles/docker-deployments/templates/ntfy.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
version: "2.3"
|
||||
|
||||
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/
|
||||
Reference in New Issue
Block a user