fix: docker network
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user