First version of docker-compose and configuration.yaml
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
services:
|
||||
init-zigbee2mqtt:
|
||||
image: alpine:3.20
|
||||
container_name: init-zigbee2mqtt
|
||||
user: '0'
|
||||
command: >
|
||||
sh -c "cp /sources/configuration.yaml /app/data"
|
||||
volumes:
|
||||
- ./sources:/sources
|
||||
# Chemin des stacks pour Hawser sous Ubuntu
|
||||
# - /var/lib/docker/volumes/hawser/stacks/mosquitto/sources:/sources
|
||||
# Chemin des stacks pour Hawser sous debian
|
||||
- /opt/hawser-stacks/zigbee2mqtt/sources:/sources
|
||||
- /var/lib/docker/volumes/zigbee2mqtt/data:/app/data
|
||||
restart: "no"
|
||||
|
||||
zigbee2mqtt:
|
||||
container_name: zigbee2mqtt
|
||||
image: ghcr.io/koenkk/zigbee2mqtt
|
||||
depends_on:
|
||||
init-zigbee2mqtt:
|
||||
condition: service_completed_successfully
|
||||
restart: always
|
||||
volumes:
|
||||
- /var/lib/docker/volumes/zigbee2mqtt/data:/app/data
|
||||
- /run/udev:/run/udev:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
ports:
|
||||
# Frontend port
|
||||
- '8080:8080'
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
devices:
|
||||
# Make sure this matched your adapter location
|
||||
- /dev/serial/by-id/usb-SMLIGHT_SMLIGHT_SLZB-07p10_56112e27de73ef11b76dc88c8fcc3fa0-if00-port0:/dev/ttyACM0
|
||||
Reference in New Issue
Block a user