homeassistant/docker-compose.yml hinzugefügt

This commit is contained in:
sujiba 2024-02-22 22:13:26 +00:00
parent 707f163e15
commit 55b37cb09e

View file

@ -0,0 +1,46 @@
version: '3.8'
services:
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: homeassistant
volumes:
- ./volumes/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Europe/Berlin
network_mode: host
restart: unless-stopped
zigbee2mqtt:
image: koenkk/zigbee2mqtt
container_name: zigbee2mqtt
group_add:
- dialout
ports:
- 127.0.0.1:38080:8080
volumes:
- ./volumes/zigbee2mqtt/data:/app/data
- /run/udev:/run/udev:ro
environment:
- TZ=Europe/Berlin
devices:
# Make sure this matched your adapter location
- /dev/ttyACM0:/dev/ttyACM0
restart: unless-stopped
mqtt:
image: eclipse-mosquitto:2.0
container_name: mqtt
command: "mosquitto -c /mosquitto-no-auth.conf"
ports:
- 127.0.0.1:1883:1883
# Websocket Port
#- 127.0.0.1:9001:9001
volumes:
- ./volumes/mosquitto/conf:/mosquitto/conf
- ./volumes/mosquitto/data:/mosquitto/data
- ./volumes/mosquitto/logs:/mosquitto/log
environment:
- TZ=Europe/Berlin
restart: unless-stopped