fix: allow explicit host path for persistent data

This commit is contained in:
Barsic Bot committed 2026-11-13 22:14:27 +03:00
1 parent 276b338b9c
commit 64deeae190
1 file changed
+3 -2
+3 -2
View File
@@ -9,12 +9,13 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
# All runtime state must live on the bind-mounted host directory. # Application path inside the container; this must match the mount target.
DATA_DIR: /app/data DATA_DIR: /app/data
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
volumes: volumes:
- ./data:/app/data # Override DATA_DIR_HOST in .env for a path outside the project directory.
- "${DATA_DIR_HOST:-./data}:/app/data"
- ./skills:/app/skills:ro - ./skills:/app/skills:ro
- ./extensions:/app/extensions:ro - ./extensions:/app/extensions:ro
- ./gcal.json:/app/gcal.json:ro - ./gcal.json:/app/gcal.json:ro