battery2mqtt/docker-compose.yaml
M.J. Wydra (Jay) 452887540c
Initial commit
2020-12-04 20:26:50 -06:00

15 lines
369 B
YAML

battery2mqtt:
container_name: battery2mqtt
image: battery2mqtt:latest
environment:
- MQTT_HOST=10.0.0.2
- MQTT_PORT=1883
- MQTT_USER=user
- MQTT_PASSWORD=password
- MQTT_QOS=1
- INTERVAL=60
- MONITORED_CONDITIONS=status,capacity
volumes:
- /sys/class/power_supply:/sys/class/power_supply:ro
restart: unless-stopped