Refactor swarm/core.yml to add host mode publishing for MQTT port
This commit is contained in:
+3
-1
@@ -10,6 +10,9 @@ services:
|
||||
- target: 443
|
||||
published: 443
|
||||
mode: host
|
||||
- target: 1883
|
||||
published: 1883
|
||||
mode: host
|
||||
- target: 5432
|
||||
published: 5432
|
||||
mode: host
|
||||
@@ -24,7 +27,6 @@ services:
|
||||
# mode: host
|
||||
# - "8083:8083"
|
||||
# - "8084:8084"
|
||||
# - "5432:5432"
|
||||
# - "7687:7687"
|
||||
deploy:
|
||||
placement:
|
||||
|
||||
+2
-2
@@ -6,6 +6,8 @@ services:
|
||||
interval: 60s
|
||||
timeout: 25s
|
||||
retries: 5
|
||||
volumes:
|
||||
- emqx-data1:/opt/emqx/data
|
||||
networks:
|
||||
- traefik-public
|
||||
# ports:
|
||||
@@ -17,8 +19,6 @@ services:
|
||||
# - 8084:8084
|
||||
# - 8883:8883
|
||||
# - 18083:18083
|
||||
volumes:
|
||||
- emqx-data1:/opt/emqx/data
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
|
||||
Reference in New Issue
Block a user