docker-compose.yml 428 B

12345678910111213141516171819
  1. version: "3.8"
  2. services:
  3. dht22mqtt:
  4. build: .
  5. container_name: dht22mqtt
  6. devices:
  7. - /dev/gpiomem:/dev/gpiomem
  8. environment:
  9. - topic=zigbee2mqtt
  10. - device_id=dht22
  11. - broker=192.168.1.10
  12. - pin=4
  13. - poll=2
  14. - device_type=dht22
  15. - unit=C
  16. - mqtt_chatter='essential|ha|full'
  17. - logging=log2stdout|log2file
  18. volumes:
  19. - ~/dht22mqttlog:/log