diff --git a/docker-compose.server.yml b/docker-compose.server.yml index 81a8df2..b6fb085 100644 --- a/docker-compose.server.yml +++ b/docker-compose.server.yml @@ -31,6 +31,15 @@ networks: external: true name: teamhub_net +# Pipeline scratch (OCR work / input) as named volumes instead of the base +# compose bind-mounts under app_root: the worker writes those files as root, so +# the deployer's `rm -rf app_root` (run as qmsadmin) hit "Permission denied" and +# failed every redeploy after a document was processed. Named volumes live +# outside app_root and survive the clean-tree extract. +volumes: + legacyhub_input: + legacyhub_work: + services: postgres: networks: !override [legacyhub_db] @@ -65,6 +74,10 @@ services: legacyhub_db: {} teamhub_net: aliases: [legacyhub-api] + volumes: !override + - legacyhub_input:/data/input + - legacyhub_work:/data/work + - hf_cache:/root/.cache/huggingface environment: AUTH_REQUIRE_IDENTITY: ${AUTH_REQUIRE_IDENTITY:-false} restart: always @@ -73,4 +86,8 @@ services: networks: !override legacyhub_db: {} teamhub_net: {} + volumes: !override + - legacyhub_input:/data/input + - legacyhub_work:/data/work + - hf_cache:/root/.cache/huggingface restart: always