Files
docker-compose/home-assistant/docker-compose.yaml
2024-08-23 23:06:19 +02:00

32 lines
874 B
YAML

version: '3'
services:
homeassistant:
container_name: HomeAssistant
network_mode: host
image: "ghcr.io/home-assistant/home-assistant:latest"
volumes:
- /share/docker_data/ha/:/config
# - /dev/ttyUSB0:/dev/ttyUSB0
# - /dev/ttyUSB1:/dev/ttyUSB1
#- /var/log:/logging
- /var/run/docker.sock:/var/run/docker.sock
- /run/dbus:/run/dbus:ro
privileged: true
environment:
- DISABLE_JEMALLOC=value
- TZ=Europe/Bratislava
labels:
com.centurylinklabs.watchtower.enable: true
restart: always
esphome:
container_name: esphome
image: esphome/esphome:latest
volumes:
- /share/docker_data/esphome/config:/config
- /etc/localtime:/etc/localtime:ro
restart: always
privileged: true
network_mode: host
environment:
- USERNAME=jaydee
- PASSWORD=jaydee1