homeassistant: feat: Use host mode networking
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
version: "3.9"
|
||||
|
||||
networks:
|
||||
public:
|
||||
external: true
|
||||
|
||||
services:
|
||||
homeassistant:
|
||||
image: "ghcr.io/home-assistant/home-assistant:stable"
|
||||
@@ -12,14 +8,4 @@ services:
|
||||
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"
|
||||
network_mode: host
|
||||
|
||||
Reference in New Issue
Block a user