Update diun/docker-compose.yml

Change placement constraint to ensure it runs on a given node
This commit is contained in:
2026-01-05 23:50:47 +00:00
parent 3b760d87a1
commit b0cb12cb6f

View File

@@ -16,13 +16,15 @@ services:
- "DIUN_PROVIDERS_SWARM_WATCHBYDEFAULT=true"
- "DIUN_NOTIF_GOTIFY_ENDPOINT=http://192.168.1.4:8111"
- "DIUN_NOTIF_GOTIFY_TOKEN=A01N42BvNjlCBY." # get your token from Gotify UI
- "DIUN_NOTIF_GOTIFY_TOKEN=Akb-uor3nfGzsy0" # get your token from Gotify UI
- "DIUN_NOTIF_GOTIFY_PRIORITY=5"
- "DIUN_NOTIF_GOTIFY_TIMEOUT=10s"
deploy:
mode: replicated
placement:
constraints: [node.role == manager]
# constraints: [node.role == manager]
constraints:
- node.labels.target == here
replicas: 1