services/swarm/ntfy.yaml
traveler 5058dbe5fa
Some checks are pending
Deploy on push / detect (push) Waiting to run
Deploy on push / deploy_swarm (push) Blocked by required conditions
Deploy on push / deploy_compose (push) Blocked by required conditions
fds
2026-04-07 14:16:48 -05:00

48 lines
No EOL
1.2 KiB
YAML

# Run with docker stack deploy -c ntfy.yaml ntfy
services:
ntfy:
image: binwiederhier/ntfy
command: serve
user: "1964:1964"
environment:
TZ: America/Chicago
volumes:
- /data/nfs/znas/Docker/ntfy/cache:/var/cache/ntfy
- /data/nfs/znas/Docker/ntfy/etc:/etc/ntfy
ports:
- 81:80
networks:
- netgrimoire
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.platform.arch != aarch64
- node.platform.arch != arm
labels:
# --- Caddy ---
caddy: ntfy.netgrimoire.com
caddy.reverse_proxy: ntfy:80
caddy.import: crowdsec
# --- Uptime Kuma ---
kuma.ntfy.http.name: ntfy
kuma.ntfy.http.url: https://ntfy.netgrimoire.com
# --- Homepage ---
homepage.group: Services
homepage.name: ntfy
homepage.icon: ntfy.png
homepage.href: https://ntfy.netgrimoire.com
homepage.description: Push Notifications
# --- DIUN ---
diun.enable: "true"
networks:
netgrimoire:
external: true