Refactor traefik.yml to add placement constraint for postgres service

This commit is contained in:
2024-06-02 09:47:11 +08:00
parent 09934995cb
commit 5342ed08b3
+3
View File
@@ -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