Dockerfile for building docker image with mosquitto (mqtt server) & auth plugin
- PostgreSQL
Create file with enviroment variables (.env)
touch .env
Edit file with lines bellow
UID=1000 # User ID
GID=1000 # Group ID
CONFIG_PATH=/path/to/mosquitto.conf
DATA_DIR=/path/to/mosquitto/stirage/directory
Run commands
docker build -t mosquitto-auth .
docker-compose up