fix: update esphome service to use networks instead of host mode

This commit is contained in:
2026-04-02 20:58:45 +08:00
parent 1f1aed480f
commit 91197e3931
+3 -1
View File
@@ -9,11 +9,13 @@ services:
- USERNAME=${DATABASE__USERNAME}
- PASSWORD=${DATABASE__PASSWORD}
- TZ=${TZ:-UTC}
- DOMAIN=${DOMAIN}
volumes:
- esphome_config:/config
restart: always
privileged: true
network_mode: host
networks:
- traefik-public
deploy:
# placement:
# constraints: