diff --git a/home-assistant/docker-compose.yaml b/home-assistant/docker-compose.yaml new file mode 100644 index 0000000..a00809b --- /dev/null +++ b/home-assistant/docker-compose.yaml @@ -0,0 +1,20 @@ +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 + - /var/log:/logging + + - /var/run/docker.sock:/var/run/docker.sock + privileged: true + + 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 \ No newline at end of file