Files
docker-compose/home-assistant/docker-compose.yaml
jaydee ccb4b6dd40 111
2023-12-11 14:32:55 +01:00

21 lines
715 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
- /etc/localtime:/etc/localtime:ro
- /dev/ttyUSB0:/dev/ttyUSB0
#- /dev/ttyUSB1:/dev/ttyUSB1
- /var/log:/logging
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
environment:
- DISABLE_JEMALLOC=value
labels:
com.centurylinklabs.watchtower.enable: true
com.centurylinklabs.watchtower.lifecycle.post-update: "/config/restore-data.sh"
com.centurylinklabs.watchtower.lifecycle.post-check: "/config/restore-data.sh"
restart: always