zigbee2mqtt first deployment

This commit is contained in:
Bryan Joshua Pedini 2022-06-24 15:16:51 +02:00
parent 50edafe840
commit 9f855de3a5
3 changed files with 20 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
data

14
docker-compose.yml Normal file
View File

@ -0,0 +1,14 @@
---
services:
zigbee2mqtt:
image: koenkk/zigbee2mqtt:${Z2M_VERSION}
restart: unless-stopped
devices:
- ${Z2M_DEVICE}:/dev/z2m_usb_device
environment:
- TZ=${Z2M_TIMEZONE}
volumes:
- ${Z2M_DATA}:/app/data
- /run/udev:/run/udev:ro
ports:
- 8080:8080

4
env.example Normal file
View File

@ -0,0 +1,4 @@
Z2M_VERSION=1.25.2
Z2M_DATA=./data
Z2M_DEVICE=/dev/ttyUSB0
Z2M_TIMEZONE=Europe/Rome