@ -0,0 +1,8 @@ | |||||
# Readme | |||||
'docker-compose exec mqtt sh' | |||||
'mosquitto_passwd -c /etc/mosquitto/passwd guest' | |||||
actual password 1234 | |||||
'password_file /mosquito/config/mosquitto.passwd' |
@ -0,0 +1,10 @@ | |||||
persistence true | |||||
persistence_location /mosquitto/data/ | |||||
log_dest file /mosquitto/log/mosquitto.log | |||||
allow_anonymous false | |||||
password_file /mosquito/config/mosquitto.passwd | |||||
listener 1883 | |||||
listener 9001 | |||||
protocol websockets |
@ -0,0 +1 @@ | |||||
guest:$7$101$Pv5OZ3GeXExNxunX$Gd58gXd7Boj1/pfrvEErRCIiM+aNVkQRxY7VykWmsYO/jOxxaRxC13fi3oecR8YRqZ3ix5ZZpEj+6tmK7NFLZw== |
@ -0,0 +1,20 @@ | |||||
version: '2' | |||||
services: | |||||
mqtt: | |||||
container_name: mosquitto | |||||
image: eclipse-mosquitto:2.0.11 | |||||
restart: always | |||||
ports: | |||||
- "1883:1883" | |||||
- "9001:9001" | |||||
volumes: | |||||
- ./config:/mosquitto/config | |||||
- ./data:/mosquitto/data | |||||
- ./log:/mosquitto/log | |||||
volumes: | |||||
config: | |||||
data: | |||||
log: |