Compare commits
2 Commits
6a06ec2041
...
b0cb12cb6f
| Author | SHA1 | Date | |
|---|---|---|---|
| b0cb12cb6f | |||
| 3b760d87a1 |
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /mnt/cephfs/docker/gotify:/app/data
|
- /mnt/cephfs/docker/gotify:/app/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.target == here
|
||||||
ports:
|
ports:
|
||||||
- 8111:80
|
- 8111:80
|
||||||
security_opt:
|
security_opt:
|
||||||
|
|||||||
Reference in New Issue
Block a user