diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 9807577..1023bd2 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -26,6 +26,7 @@ services: volumes: - mosquitto_data:/mosquitto/data - mosquitto_log:/mosquitto/log + - ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro healthcheck: test: ["CMD", "sh", "-c", "nc -z localhost 1883 || exit 1"] interval: 2s diff --git a/test/mosquitto.conf b/test/mosquitto.conf new file mode 100644 index 0000000..a1fb2b7 --- /dev/null +++ b/test/mosquitto.conf @@ -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/