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