Refactor traefik.yml to add placement constraint for postgres service
This commit is contained in:
@@ -51,6 +51,9 @@ services:
|
||||
networks:
|
||||
- traefik-public
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.postgres.postgres_data == true
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=traefik-public
|
||||
|
||||
Reference in New Issue
Block a user