fix(docker): make instance directory configurable and writable

- Add INSTANCE_BASE_PATH config option (defaults to /data/instances)
- Update docker.py to use configured path instead of hardcoded 'data/instances'
- Update Dockerfile to create /data/instances and chown to appuser
- Add instance_data volume to docker-compose.traefik.yml and docker-compose.yml
- Set INSTANCE_BASE_PATH env var in both compose files

This fixes the PermissionError when creating tool instances because
appuser can now write to /data/instances.
This commit is contained in:
Fusion
2026-05-20 10:09:37 +02:00
parent d4e992a9e2
commit 25662e525c
5 changed files with 17 additions and 5 deletions
+3
View File
@@ -49,6 +49,9 @@ class Settings(BaseSettings):
# Repository storage
repo_base_path: str = "/data/repos"
# Tool instance storage
instance_base_path: str = "/data/instances"
model_config = SettingsConfigDict(env_file=".env", extra="ignore", populate_by_name=True)