1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/zigbee2mqtt/docker-compose.yml
2024-01-03 16:11:49 +08:00

22 lines
462 B
YAML

#
# See: https://www.zigbee2mqtt.io/guide/installation/02_docker.html#docker-compose
#
version: "3.8"
services:
zigbee2mqtt:
image: koenkk/zigbee2mqtt
ports:
- "8080:8080"
volumes:
- ./data:/app/data
- /run/udev:/run/udev:ro
environment:
- TZ=Asia/Shanghai
devices:
- /dev/serial/by-id/usb-Texas_Instruments_XXXXXX:/dev/ttyACM0
group_add:
- dialout
user: "1000:1000"
restart: unless-stopped