Refactor swarm/core.yml to add host mode publishing for MQTT port

This commit is contained in:
2024-06-02 18:11:05 +08:00
parent 0360e165f4
commit ff31f5c064
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -10,6 +10,9 @@ services:
- target: 443 - target: 443
published: 443 published: 443
mode: host mode: host
- target: 1883
published: 1883
mode: host
- target: 5432 - target: 5432
published: 5432 published: 5432
mode: host mode: host
@@ -24,7 +27,6 @@ services:
# mode: host # mode: host
# - "8083:8083" # - "8083:8083"
# - "8084:8084" # - "8084:8084"
# - "5432:5432"
# - "7687:7687" # - "7687:7687"
deploy: deploy:
placement: placement:
+2 -2
View File
@@ -6,6 +6,8 @@ services:
interval: 60s interval: 60s
timeout: 25s timeout: 25s
retries: 5 retries: 5
volumes:
- emqx-data1:/opt/emqx/data
networks: networks:
- traefik-public - traefik-public
# ports: # ports:
@@ -17,8 +19,6 @@ services:
# - 8084:8084 # - 8084:8084
# - 8883:8883 # - 8883:8883
# - 18083:18083 # - 18083:18083
volumes:
- emqx-data1:/opt/emqx/data
deploy: deploy:
placement: placement:
constraints: constraints: