test: mount mosquitto.conf to listen on all interfaces
This commit is contained in:
@@ -26,6 +26,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- mosquitto_data:/mosquitto/data
|
- mosquitto_data:/mosquitto/data
|
||||||
- mosquitto_log:/mosquitto/log
|
- mosquitto_log:/mosquitto/log
|
||||||
|
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "sh", "-c", "nc -z localhost 1883 || exit 1"]
|
test: ["CMD", "sh", "-c", "nc -z localhost 1883 || exit 1"]
|
||||||
interval: 2s
|
interval: 2s
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Allow external connections on port 1883
|
||||||
|
listener 1883 0.0.0.0
|
||||||
|
allow_anonymous true
|
||||||
|
# Increase persistence location so container can map volume if needed
|
||||||
|
persistence true
|
||||||
|
persistence_location /mosquitto/data/
|
||||||
Reference in New Issue
Block a user