fix: update esphome service volume mapping to use named volume

This commit is contained in:
2026-04-02 20:54:38 +08:00
parent 33fa78e117
commit c3d1638fd4
+4 -2
View File
@@ -1,14 +1,16 @@
volume:
esphome_config: {}
services:
esphome:
container_name: esphome
image: ghcr.io/esphome/esphome
user: "0:0"
environment:
- USERNAME=${DATABASE__USERNAME}
- PASSWORD=${DATABASE__PASSWORD}
- TZ=${TZ:-UTC}
volumes:
- /var/data/esphome/config:/config
- esphome_config:/config
restart: always
privileged: true
network_mode: host