fix(ocr): route Surya model staging to SSD via TMPDIR + add volume-init service #615
@@ -134,7 +134,7 @@ services:
|
|||||||
# created before the non-root ocr user was introduced in commit 1aca4c4a)
|
# created before the non-root ocr user was introduced in commit 1aca4c4a)
|
||||||
# and guarantees /app/cache/.tmp exists for TMPDIR staging. See ADR-021.
|
# and guarantees /app/cache/.tmp exists for TMPDIR staging. See ADR-021.
|
||||||
ocr-volume-init:
|
ocr-volume-init:
|
||||||
image: alpine:3
|
image: alpine:3.21
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
@@ -142,6 +142,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ocr-models:/app/models
|
- ocr-models:/app/models
|
||||||
- ocr-cache:/app/cache
|
- ocr-cache:/app/cache
|
||||||
|
networks: []
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
|
||||||
ocr-service:
|
ocr-service:
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ services:
|
|||||||
# created before the non-root ocr user was introduced in commit 1aca4c4a)
|
# created before the non-root ocr user was introduced in commit 1aca4c4a)
|
||||||
# and guarantees /app/cache/.tmp exists for TMPDIR staging. See ADR-021.
|
# and guarantees /app/cache/.tmp exists for TMPDIR staging. See ADR-021.
|
||||||
ocr-volume-init:
|
ocr-volume-init:
|
||||||
image: alpine:3
|
image: alpine:3.21
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
@@ -85,6 +85,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ocr_models:/app/models
|
- ocr_models:/app/models
|
||||||
- ocr_cache:/app/cache
|
- ocr_cache:/app/cache
|
||||||
|
networks: []
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
|
||||||
# --- OCR: Python microservice (Surya + Kraken) ---
|
# --- OCR: Python microservice (Surya + Kraken) ---
|
||||||
|
|||||||
Reference in New Issue
Block a user