I think you don't need to setup specific docker network for this purpose. Just have to expose the docker service's ports to outside, say expose with ports: - "1883:1883" # MQTT - "8883:8883" # SSL MQTT - "8083:8083" # Websockets - "18083:18083" # Dashboard/REST_API then
ports:
- "1883:1883" # MQTT
- "8883:8883" # SSL MQTT
- "8083:8083" # Websockets
- "18083:18083" # Dashboard/REST_API
then you can happily reverse proxy to localhost/127.0.0.1 in your nginx running outside docker.