chirpstack / chirpstack-docker

Setup ChirpStack using Docker Compose
https://www.chirpstack.io/
MIT License
273 stars 316 forks source link

Mount mosquitto config dir not only config file #92

Closed trivialkettle closed 9 months ago

trivialkettle commented 11 months ago

This makes it easier to add a ACL and passwd file. Also this approach syncs the docker and host file automagically for me.

bconway commented 9 months ago

This is how I use it, for both mosquitto.conf and passwd.

trivialkettle commented 9 months ago

I think it should also work to mount the current directory to avoid a breaking change:

- ./configuration/mosquitto/:/mosquitto/config/

Though then its not possible to mount data and log directory.

brocaar commented 9 months ago

Thanks @trivialkettle this looks fine to me.

I think it should also work to mount the current directory to avoid a breaking change

I think I prefer it the original way. I'm not sure if I consider this a "breaking change". This repository contains an example that can be used to spin up a ChirpStack instance easily. This is also documented in the README that this should be used as a starting-point, not as a ready-to-use production solution.