Update diun/docker-compose.yml
Change placement constraint to ensure it runs on a given node
This commit is contained in:
@@ -16,13 +16,15 @@ services:
|
|||||||
- "DIUN_PROVIDERS_SWARM_WATCHBYDEFAULT=true"
|
- "DIUN_PROVIDERS_SWARM_WATCHBYDEFAULT=true"
|
||||||
|
|
||||||
- "DIUN_NOTIF_GOTIFY_ENDPOINT=http://192.168.1.4:8111"
|
- "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_PRIORITY=5"
|
||||||
- "DIUN_NOTIF_GOTIFY_TIMEOUT=10s"
|
- "DIUN_NOTIF_GOTIFY_TIMEOUT=10s"
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.role == manager]
|
# constraints: [node.role == manager]
|
||||||
|
constraints:
|
||||||
|
- node.labels.target == here
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user