-
Notifications
You must be signed in to change notification settings - Fork 10
docker compose example
gpbenton edited this page Dec 27, 2020
·
2 revisions
version: '3.4'
services:
energenie_mqtt_client:
image: gpbenton/engmqttclient:1.0.0
restart: unless-stopped
container_name: energenie_mqtt_client
privileged: true
working_dir: /opt/energenie_mqtt_client/
command: ["-h", "mosquitto"]
# The following lines are to set debugging
# Most useful is to set LOG4C_PRIORITY to debug
volumes:
- $PWD/engMQTTClient/log4c:/etc/log4c
environment:
LOG4C_RCPATH: '/etc/log4c/log4crc'
LOG4C_PRIORITY: info
LOG4C_APPENDER: stdout
mosquitto:
container_name: mosquitto
restart: unless-stopped
image: eclipse-mosquitto
volumes:
- ./mosquitto_config:/mosquitto/config:ro
- mosquitto_persistence_database:/mosquitto/data
- /etc/localtime:/etc/localtime:ro
ports:
- "1883:1883"
- "8883:8883"
- "9001:9001"