mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-24 17:06:00 +00:00
Refactor emqx.yml to add placement constraint for emqx-data1 service
This commit is contained in:
@@ -20,6 +20,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- emqx-data1:/opt/emqx/data
|
- emqx-data1:/opt/emqx/data
|
||||||
deploy:
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.emqx1.emqx-data1 == true
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.docker.network=traefik-public
|
- traefik.docker.network=traefik-public
|
||||||
|
|||||||
Reference in New Issue
Block a user