diff --git a/homeassistant/.env.example b/homeassistant/.env.example new file mode 100644 index 0000000..c378c6a --- /dev/null +++ b/homeassistant/.env.example @@ -0,0 +1,2 @@ +# DOMAIN_ROOT is the root domain that this service will register as with Traefik +DOMAIN_ROOT=domain.tld \ No newline at end of file diff --git a/homeassistant/docker-compose.yml b/homeassistant/docker-compose.yml new file mode 100644 index 0000000..c5fbdb5 --- /dev/null +++ b/homeassistant/docker-compose.yml @@ -0,0 +1,26 @@ +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