Update docker-compose.yaml
removed traefik labels and network since host network is used in homeassistant. Traefik is implemented by a file provider.
This commit is contained in:
@@ -1,20 +1,8 @@
|
|||||||
---
|
---
|
||||||
version: "2.1"
|
|
||||||
services:
|
services:
|
||||||
homeassistant:
|
homeassistant:
|
||||||
image: lscr.io/linuxserver/homeassistant:latest
|
image: lscr.io/linuxserver/homeassistant:latest
|
||||||
container_name: homeassistant
|
container_name: homeassistant
|
||||||
networks:
|
|
||||||
- traefik-public
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.hass.rule=Host(`ha.speerfam.net`)"
|
|
||||||
- "traefik.http.routers.hass.entrypoints=websecure"
|
|
||||||
- "traefik.http.routers.hass.tls.certresolver=myresolver"
|
|
||||||
|
|
||||||
# Pulling the security rules dynamically from our file provider setup
|
|
||||||
- "traefik.http.routers.hass.middlewares=geoblock-policy@file,crowdsec-policy@file,secure-headers@file"
|
|
||||||
- "traefik.http.services.hass.loadbalancer.server.port=8123"
|
|
||||||
network_mode: host
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
@@ -27,7 +15,3 @@ services:
|
|||||||
# devices:
|
# devices:
|
||||||
# - /path/to/device:/path/to/device #optional
|
# - /path/to/device:/path/to/device #optional
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
networks:
|
|
||||||
traefik-public:
|
|
||||||
external: true
|
|
||||||
Reference in New Issue
Block a user