remove constraints on docker service placement

This commit is contained in:
Pim Kunis 2023-07-16 12:06:49 +02:00
parent 3bf589e10e
commit cf5da3f8dd
8 changed files with 1 additions and 61 deletions

View file

@ -33,10 +33,6 @@ services:
target: /data
volume:
nocopy: true
deploy:
placement:
constraints:
- "node.labels.mastodon == true"
web:
image: tootsuite/mastodon:v4.1
@ -69,9 +65,6 @@ services:
volume:
nocopy: true
deploy:
placement:
constraints:
- "node.labels.mastodon == true"
labels:
- traefik.enable=true
- traefik.http.routers.mastodon.entrypoints=websecure
@ -101,9 +94,6 @@ services:
# prettier-ignore
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
deploy:
placement:
constraints:
- "node.labels.mastodon == true"
labels:
- traefik.enable=true
- traefik.http.routers.mastodon-streaming.entrypoints=websecure
@ -137,9 +127,5 @@ services:
nocopy: true
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
deploy:
placement:
constraints:
- "node.labels.mastodon == true"
depends_on:
- redis