diff --git a/compose/docker-compose.contained.yml b/compose/docker-compose.contained.yml index 2d2ef308..61512717 100644 --- a/compose/docker-compose.contained.yml +++ b/compose/docker-compose.contained.yml @@ -75,8 +75,8 @@ services: network_mode: host volumes: - /root/mosquitto.conf:/mosquitto/config/mosquitto.conf - - mosquitto_data:/var/lib/mosquitto - - mosquitto_logs:/var/log/mosquitto/mosquitto.log + - mosquitto_data:/mosquitto/data + - mosquitto_logs:/mosquitto/log volumes: caddy_data: {} caddy_conf: {} diff --git a/docker/mosquitto.conf b/docker/mosquitto.conf index 3594af29..85914bad 100644 --- a/docker/mosquitto.conf +++ b/docker/mosquitto.conf @@ -1,10 +1,11 @@ -persistance true -persistance_location /var/lib/mosquitto/ +persistence true +persistence file mosquitto.db +persistance_location mosquitto/data -log_dest_file /var/log/mosquitto/mosquitto.log +log_dest_file mosquitto/log/mosquitto.log per_listener_settings true listener 1883 allow_anonymous true -bind_interface SERVER_PUBLIC_IP +#bind_interface SERVER_PUBLIC_IP