fix: docker network
This commit is contained in:
@@ -17,6 +17,8 @@ services:
|
||||
- ${REPO_DIR}/configurations/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
|
||||
- traefik-data:/var/lib/certificates
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
@@ -32,9 +34,10 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./dockerfiles/home-assistant.Dockerfile
|
||||
network_mode: host
|
||||
labels:
|
||||
- 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:
|
||||
- homeassistant-data:/config
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user