fix(deploy): pipeline scratch as named volumes to unblock redeploy
Some checks failed
CI / Backend (lint + tests + compose) (push) Has been cancelled
CI / Frontend (lint + type-check + build) (push) Has been cancelled

This commit is contained in:
Vadim Malanov
2026-07-11 18:26:00 +03:00
parent 4eb6822736
commit 9c2f5848c2

View File

@@ -31,6 +31,15 @@ networks:
external: true external: true
name: teamhub_net 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: services:
postgres: postgres:
networks: !override [legacyhub_db] networks: !override [legacyhub_db]
@@ -65,6 +74,10 @@ services:
legacyhub_db: {} legacyhub_db: {}
teamhub_net: teamhub_net:
aliases: [legacyhub-api] aliases: [legacyhub-api]
volumes: !override
- legacyhub_input:/data/input
- legacyhub_work:/data/work
- hf_cache:/root/.cache/huggingface
environment: environment:
AUTH_REQUIRE_IDENTITY: ${AUTH_REQUIRE_IDENTITY:-false} AUTH_REQUIRE_IDENTITY: ${AUTH_REQUIRE_IDENTITY:-false}
restart: always restart: always
@@ -73,4 +86,8 @@ services:
networks: !override networks: !override
legacyhub_db: {} legacyhub_db: {}
teamhub_net: {} teamhub_net: {}
volumes: !override
- legacyhub_input:/data/input
- legacyhub_work:/data/work
- hf_cache:/root/.cache/huggingface
restart: always restart: always