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: services:
esphome: esphome:
container_name: esphome container_name: esphome
image: ghcr.io/esphome/esphome image: ghcr.io/esphome/esphome
user: "0:0"
environment: environment:
- USERNAME=${DATABASE__USERNAME} - USERNAME=${DATABASE__USERNAME}
- PASSWORD=${DATABASE__PASSWORD} - PASSWORD=${DATABASE__PASSWORD}
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
volumes: volumes:
- /var/data/esphome/config:/config - esphome_config:/config
restart: always restart: always
privileged: true privileged: true
network_mode: host network_mode: host