fix(deploy): pipeline scratch as named volumes to unblock redeploy
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user