fg
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

This commit is contained in:
traveler 2026-04-07 14:09:49 -05:00
parent 27c8306da6
commit 247956f05c
2 changed files with 32 additions and 11 deletions

View file

@ -21,6 +21,8 @@ services:
placement: placement:
constraints: constraints:
- node.role == manager - node.role == manager
- node.platform.arch != arm64
- node.platform.arch != arm
restart_policy: restart_policy:
condition: on-failure condition: on-failure
delay: 5s delay: 5s

View file

@ -1,28 +1,47 @@
# Run with docker stack deploy -c ntfy.yaml ntfy
services: services:
ntfy: ntfy:
image: binwiederhier/ntfy image: binwiederhier/ntfy
command: serve command: serve
user: "1964:1964"
environment: environment:
TZ: America/Chicago TZ: America/Chicago
user: "1964:1964"
networks:
- netgrimoire
volumes: volumes:
- /data/nfs/znas/Docker/ntfy/cache:/var/cache/ntfy - /data/nfs/znas/Docker/ntfy/cache:/var/cache/ntfy
- /data/nfs/znas/Docker/ntfy/etc:/etc/ntfy - /data/nfs/znas/Docker/ntfy/etc:/etc/ntfy
ports: ports:
- 81:80 - 81:80
networks:
- netgrimoire
deploy: deploy:
restart_policy: restart_policy:
condition: any condition: any
delay: 10s delay: 5s
max_attempts: 5 max_attempts: 3
window: 60s window: 120s
placement:
constraints:
- node.platform.arch != arm64
- node.platform.arch != arm
labels: labels:
caddy: "ntfy.netgrimoire.com" # --- Caddy ---
#caddy.import: "authentik" caddy: ntfy.netgrimoire.com
caddy.reverse_proxy: "{{upstreams 80}}" 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: networks:
netgrimoire: netgrimoire: