docker-compose.yml 484 B

1234567891011121314151617181920
  1. version: "3.8"
  2. services:
  3. dht22mqtt:
  4. image: hvalev/dht22mqtt-homeassistant
  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. - filtering=enabled
  19. volumes:
  20. - ~/dht22mqttlog:/log