update traefik compose to use secure proxy

This commit is contained in:
Matthew R. Kasun 2022-06-02 07:10:33 -04:00
parent def0c574f2
commit 47ca206f5a

View file

@ -34,7 +34,7 @@ services:
NODE_ID: "netmaker-server-1" NODE_ID: "netmaker-server-1"
MQ_HOST: "mq" MQ_HOST: "mq"
# uncomment once netmaker supports changing MQ port # uncomment once netmaker supports changing MQ port
#MQ_PORT: "443" MQ_PORT: "443"
HOST_NETWORK: "off" HOST_NETWORK: "off"
VERBOSITY: "1" VERBOSITY: "1"
MANAGE_IPTABLES: "on" MANAGE_IPTABLES: "on"
@ -121,10 +121,10 @@ services:
ports: ports:
- "127.0.0.1:1883:1883" - "127.0.0.1:1883:1883"
# comment once netmaker supports changing MQ port # comment once netmaker supports changing MQ port
- "8883:8883" # - "8883:8883"
# uncomment once netmaker supports changing MQ port # uncomment once netmaker supports changing MQ port
#expose: expose:
# - "8883" - "8883"
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.tcp.routers.mqtts.rule=HostSNI(`broker.NETMAKER_BASE_DOMAIN`) - traefik.tcp.routers.mqtts.rule=HostSNI(`broker.NETMAKER_BASE_DOMAIN`)