have to use files for hass and network mode to be able to autodiscover devices like sonos

This commit is contained in:
2023-06-19 20:31:34 +10:00
parent 0860aa1931
commit e96f56e7a8

View File

@@ -402,7 +402,7 @@ services:
image: homeassistant/home-assistant
container_name: hass
privileged: true
# network_mode: host
network_mode: host
restart: always
security_opt:
- seccomp:unconfined
@@ -417,16 +417,16 @@ services:
- /run/dbus:/run/dbus:ro
labels:
- "com.centurylinklabs.watchtower.enable=false"
- "traefik.enable=true"
- "traefik.http.routers.hass.rule=Host(`hass.depaoli.id.au`)"
- "traefik.http.routers.hass.tls=true"
- "traefik.http.services.hass.loadbalancer.server.port=8123"
- "traefik.http.routers.hass.entrypoints=secureweb"
# - "traefik.enable=true"
# - "traefik.http.routers.hass.rule=Host(`hass.depaoli.id.au`)"
# - "traefik.http.routers.hass.tls=true"
# - "traefik.http.services.hass.loadbalancer.server.port=8123"
# - "traefik.http.routers.hass.entrypoints=secureweb"
# - "traefik.http.routers.hass.tls.options=tls12@file"
# 8123 == main port, 3610???
ports:
- "8123:8123"
- "3610:3610/udp"
# ports:
# - "8123:8123"
# - "3610:3610/udp"
mass:
image: ghcr.io/music-assistant/server