# Allow external connections on port 1883 # listen on all interfaces listener 1883 0.0.0.0 # do not allow anonymous in this test stack; require password_file allow_anonymous false # place password file in the data volume (writable) password_file /mosquitto/data/passwordfile # ACL file controls topic permissions acl_file /mosquitto/data/aclfile # Increase persistence location so container can map volume if needed persistence true persistence_location /mosquitto/data/