Compare commits

..

2 Commits

Author SHA1 Message Date
b0cb12cb6f Update diun/docker-compose.yml
Change placement constraint to ensure it runs on a given node
2026-01-05 23:50:47 +00:00
3b760d87a1 Update gotify/docker-compose.yml
Add the label target = here to ensure application runs where I want it to run
2026-01-05 23:27:34 +00:00
2 changed files with 8 additions and 2 deletions

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

View File

@@ -4,6 +4,10 @@ services:
volumes:
- /mnt/cephfs/docker/gotify:/app/data
restart: unless-stopped
deploy:
placement:
constraints:
- node.labels.target == here
ports:
- 8111:80
security_opt: