services/swarm/diun.yaml
traveler c3b0c0f571 df
2026-05-01 13:40:01 -05:00

41 lines
No EOL
1.1 KiB
YAML
Executable file

# Run with docker stack deploy -c diun.yaml diun
services:
diun:
image: crazymax/diun:latest
user: "1964:1964"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /data/nfs/znas/Docker/diun:/data
networks:
- netgrimoire
environment:
TZ: America/Chicago
DIUN_WATCH_WORKERS: "20"
DIUN_WATCH_SCHEDULE: "0 */6 * * *"
DIUN_PROVIDERS_DOCKER: "true"
DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT: "true"
DIUN_NOTIF_NTFY_ENDPOINT: https://ntfy.netgrimoire.com
DIUN_NOTIF_NTFY_TOPIC: netgrimoire-diun
DIUN_NOTIF_NTFY_PRIORITY: "3"
deploy:
labels:
gremlin.version: "2026-04-1"
gremlin.caddy.skip: "true"
gremlin.homepage.skip: "true"
gremlin.monitor.skip: "true"
placement:
constraints:
- node.platform.arch != aarch64
- node.role == manager
- node.platform.arch != arm64
- node.platform.arch != arm
restart_policy:
condition: on-failure
delay: 5s
labels:
# --- DIUN ---
diun.enable: "true"
networks:
netgrimoire:
external: true