add traefik;
This commit is contained in:
@@ -4,10 +4,23 @@ services:
|
||||
image: ghcr.io/home-assistant/home-assistant:stable
|
||||
restart: unless-stopped
|
||||
privileged: true
|
||||
network_mode: host
|
||||
environment:
|
||||
- TZ=Europe/Vienna
|
||||
volumes:
|
||||
- /srv/home-assistent/config:/config
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /run/dbus:/run/dbus:ro
|
||||
environment:
|
||||
- TZ=Europe/Vienna
|
||||
networks:
|
||||
- traefik_nw_public
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.homeassistant.entrypoints=web,websecure
|
||||
- traefik.http.routers.homeassistant.rule=Host(`ha.haider.app`)
|
||||
- traefik.http.routers.homeassistant.tls=true
|
||||
- traefik.http.routers.homeassistant.tls.certresolver=production
|
||||
- traefik.docker.network=traefik_nw_public
|
||||
- traefik.http.services.homeassistant.loadbalancer.server.port=8123
|
||||
|
||||
networks:
|
||||
traefik_nw_public:
|
||||
external: true
|
||||
Reference in New Issue
Block a user