fix: docker network

This commit is contained in:
willem.serruys
2026-08-16 13:48:42 +02:00
parent ff45cfd7d0
commit b122aad755

View File

@@ -17,6 +17,8 @@ services:
- ${REPO_DIR}/configurations/traefik/traefik.yml:/etc/traefik/traefik.yml:ro - ${REPO_DIR}/configurations/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
- traefik-data:/var/lib/certificates - traefik-data:/var/lib/certificates
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
extra_hosts:
- host.docker.internal:host-gateway
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443
@@ -32,9 +34,10 @@ services:
build: build:
context: . context: .
dockerfile: ./dockerfiles/home-assistant.Dockerfile dockerfile: ./dockerfiles/home-assistant.Dockerfile
network_mode: host
labels: labels:
- traefik.http.routers.homeassistant.rule=Host(`homeassistant.pladijs`) - traefik.http.routers.homeassistant.rule=Host(`homeassistant.pladijs`)
- traefik.http.services.homeassistant.loadbalancer.server.port=8123 - traefik.http.services.homeassistant.loadbalancer.server.url=http://host.docker.internal:8123
volumes: volumes:
- homeassistant-data:/config - homeassistant-data:/config
restart: unless-stopped restart: unless-stopped