27 lines
788 B
YAML
27 lines
788 B
YAML
version: '3'
|
|
services:
|
|
homeassistant:
|
|
container_name: homeassistant
|
|
image: "ghcr.io/home-assistant/home-assistant:stable"
|
|
volumes:
|
|
- homeassistant_config:/config
|
|
- /etc/localtime:/etc/localtime:ro
|
|
restart: unless-stopped
|
|
privileged: true
|
|
network_mode: host
|
|
|
|
environment:
|
|
- DOMAIN_ROOT=${DOMAIN_ROOT}
|
|
|
|
#labels:
|
|
# - "traefik.enable=true"
|
|
# - "traefik.http.routers.homeassistant.rule=Host(`homeassistant.${DOMAIN_ROOT}`)"
|
|
# - "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
|
|
# - "traefik.http.services.homeassistant.loadbalancer.server.url=http://192.168.0.197:8123"
|
|
# - 'traefik.http.routers.homeassistant.middlewares=authelia@docker'
|
|
|
|
|
|
volumes:
|
|
homeassistant_config:
|
|
external: true
|