Triển khai toàn bộ service bằng một docker compose

chandra + kie (vLLM, weights mount từ CHANDRA_MODEL_DIR/KIE_MODEL_DIR) và
api + worker (image build từ Dockerfile, network_mode host, đọc .env) thay cho
hai tmux run-api.sh/run-worker.sh và docker run chandra riêng. Worker mount
native-hdfs của gói portable, đợi hai model healthy mới nhận trang. GPU chọn
bằng GPU_DEVICE (driver nvidia) thay cho CDI GPU_UUID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 13:40:05 +00:00
parent 3cbba8bd79
commit 0ac9a5c0fb
6 changed files with 181 additions and 82 deletions

5
.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
*
!requirements-runtime.txt
!pyproject.toml
!idp_service
idp_service/__pycache__