diff --git a/mosquitto.sh b/mosquitto.sh index df70e1b..4732ffd 100755 --- a/mosquitto.sh +++ b/mosquitto.sh @@ -1,2 +1,2 @@ #/bin/sh -docker run -it --name mosquitto --rm -p 9001:9001 -v $(pwd)/mosquitto:/mosquitto/ eclipse-mosquitto +docker run -it --name mosquitto --rm -p 9001:9001 -p 1883:1883 -v $(pwd)/mosquitto:/mosquitto/ eclipse-mosquitto diff --git a/mosquitto/config/mosquitto.conf b/mosquitto/config/mosquitto.conf index 37009bc..aafc47d 100644 --- a/mosquitto/config/mosquitto.conf +++ b/mosquitto/config/mosquitto.conf @@ -2,6 +2,5 @@ allow_anonymous true listener 9001 protocol websockets -persistence true -persistence_location /mosquitto/data/ -log_dest file /mosquitto/log/mosquitto.log +allow_anonymous true +listener 1883