version: "3.7" services: # mqtt5 eclipse-mosquitto mosquitto: image: eclipse-mosquitto:latest ports: - "1883:1883" #default mqtt port - "9001:9001" #default mqtt port for websockets volumes: - /mnt/docker/data/mosquitto/config:/mosquitto/config - /mnt/docker/data/mosquitto/data:/mosquitto/data - /mnt/docker/data/mosquitto/log:/mosquitto/log