homeassistant: Initial commit

This commit is contained in:
PorridgePi
2022-09-24 12:37:52 +01:00
parent 7b366ef150
commit b637789816
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1 @@
HOMEASSISTANT_DOMAIN=domain_goes_here

View File

@@ -0,0 +1,25 @@
version: "3.9"
networks:
public:
external: true
services:
homeassistant:
image: "ghcr.io/home-assistant/home-assistant:stable"
container_name: homeassistant
restart: always
volumes:
- "./homeassistant-config-data:/config"
- "/etc/localtime:/etc/localtime:ro"
# ports:
# - "8123:8123"
networks:
- public
labels:
- "traefik.enable=true"
- "traefik.http.routers.homeassistant.rule=Host(`${HOMEASSISTANT_DOMAIN}`)"
- "traefik.http.routers.homeassistant.service=homeassistant-service"
- "traefik.http.services.homeassistant-service.loadbalancer.server.port=8123"
- "traefik.http.routers.homeassistant.tls=true"
- "traefik.http.routers.homeassistant.tls.certresolver=le"