mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-07-02 00:08:33 +02:00
20 lines
635 B
YAML
20 lines
635 B
YAML
version: '3'
|
|
services:
|
|
homeassistant:
|
|
container_name: HomeAssistant1
|
|
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 |