remove constraints on docker service placement
This commit is contained in:
parent
3bf589e10e
commit
cf5da3f8dd
8 changed files with 1 additions and 61 deletions
|
@ -11,9 +11,6 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.public == true"
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.cyberchef.entrypoints=websecure
|
- traefik.http.routers.cyberchef.entrypoints=websecure
|
||||||
|
|
|
@ -13,9 +13,6 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 2500:2500
|
- 2500:2500
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.public == true"
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.inbucket.entrypoints=localsecure
|
- traefik.http.routers.inbucket.entrypoints=localsecure
|
||||||
|
|
|
@ -21,9 +21,6 @@ services:
|
||||||
- jitsi
|
- jitsi
|
||||||
- traefik
|
- traefik
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.public == true"
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.jitsi-web.entrypoints=websecure
|
- traefik.http.routers.jitsi-web.entrypoints=websecure
|
||||||
|
@ -57,10 +54,6 @@ services:
|
||||||
jitsi:
|
jitsi:
|
||||||
aliases:
|
aliases:
|
||||||
- xmpp.meet.jitsi
|
- xmpp.meet.jitsi
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.public == true"
|
|
||||||
|
|
||||||
jicofo:
|
jicofo:
|
||||||
image: jitsi/jicofo:stable-8218
|
image: jitsi/jicofo:stable-8218
|
||||||
|
@ -74,10 +67,6 @@ services:
|
||||||
- prosody
|
- prosody
|
||||||
networks:
|
networks:
|
||||||
- jitsi
|
- jitsi
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.public == true"
|
|
||||||
|
|
||||||
jvb:
|
jvb:
|
||||||
image: jitsi/jvb:stable-8218
|
image: jitsi/jvb:stable-8218
|
||||||
|
@ -96,7 +85,3 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- jitsi
|
- jitsi
|
||||||
- traefik
|
- traefik
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.public == true"
|
|
||||||
|
|
|
@ -6,7 +6,3 @@ services:
|
||||||
image: teddysun/kms
|
image: teddysun/kms
|
||||||
ports:
|
ports:
|
||||||
- 1688:1688
|
- 1688:1688
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.public == true"
|
|
||||||
|
|
|
@ -33,10 +33,6 @@ services:
|
||||||
target: /data
|
target: /data
|
||||||
volume:
|
volume:
|
||||||
nocopy: true
|
nocopy: true
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.mastodon == true"
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: tootsuite/mastodon:v4.1
|
image: tootsuite/mastodon:v4.1
|
||||||
|
@ -69,9 +65,6 @@ services:
|
||||||
volume:
|
volume:
|
||||||
nocopy: true
|
nocopy: true
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.mastodon == true"
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.mastodon.entrypoints=websecure
|
- traefik.http.routers.mastodon.entrypoints=websecure
|
||||||
|
@ -101,9 +94,6 @@ services:
|
||||||
# prettier-ignore
|
# prettier-ignore
|
||||||
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
|
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.mastodon == true"
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.mastodon-streaming.entrypoints=websecure
|
- traefik.http.routers.mastodon-streaming.entrypoints=websecure
|
||||||
|
@ -137,9 +127,5 @@ services:
|
||||||
nocopy: true
|
nocopy: true
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
|
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.mastodon == true"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
|
|
@ -39,9 +39,6 @@ services:
|
||||||
volume:
|
volume:
|
||||||
nocopy: true
|
nocopy: true
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.overleaf == true"
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.overleaf.entrypoints=websecure
|
- traefik.http.routers.overleaf.entrypoints=websecure
|
||||||
|
@ -100,10 +97,6 @@ services:
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.overleaf == true"
|
|
||||||
|
|
||||||
overleaf-redis:
|
overleaf-redis:
|
||||||
image: redis:5
|
image: redis:5
|
||||||
|
@ -117,7 +110,3 @@ services:
|
||||||
target: /data
|
target: /data
|
||||||
volume:
|
volume:
|
||||||
nocopy: true
|
nocopy: true
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.overleaf == true"
|
|
||||||
|
|
|
@ -32,20 +32,12 @@ services:
|
||||||
nocopy: true
|
nocopy: true
|
||||||
networks:
|
networks:
|
||||||
- seafile
|
- seafile
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.seafile == true"
|
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
image: memcached:1.6
|
image: memcached:1.6
|
||||||
entrypoint: memcached -m 256
|
entrypoint: memcached -m 256
|
||||||
networks:
|
networks:
|
||||||
- seafile
|
- seafile
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.seafile == true"
|
|
||||||
|
|
||||||
seafile:
|
seafile:
|
||||||
image: seafileltd/seafile-mc:9.0.10
|
image: seafileltd/seafile-mc:9.0.10
|
||||||
|
@ -64,9 +56,6 @@ services:
|
||||||
- SEAFILE_SERVER_LETSENCRYPT=false
|
- SEAFILE_SERVER_LETSENCRYPT=false
|
||||||
- SEAFILE_SERVER_HOSTNAME={{ seafile_domain }}
|
- SEAFILE_SERVER_HOSTNAME={{ seafile_domain }}
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- "node.labels.seafile == true"
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.seafile.entrypoints=websecure
|
- traefik.http.routers.seafile.entrypoints=websecure
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# vi: ft=yaml
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|
Reference in a new issue