From 8fd9353068c9af3608b0c7bbf57f7859d2bbd7f8 Mon Sep 17 00:00:00 2001 From: Kristjan Komlosi Date: Sun, 28 Dec 2025 15:19:23 +0100 Subject: [PATCH] test: mount mosquitto.conf to listen on all interfaces --- test/docker-compose.yml | 1 + test/mosquitto.conf | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 test/mosquitto.conf 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/