后端移除内嵌OCR子服务
This commit is contained in:
@@ -21,22 +21,6 @@ services:
|
||||
volumes:
|
||||
- postgres_dev_data:/var/lib/postgresql/data
|
||||
|
||||
ocr-worker:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: deploy/docker/ocr-worker.Dockerfile
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8100/health || exit 1"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
start_period: 15s
|
||||
environment:
|
||||
TZ: ${TZ:-Asia/Shanghai}
|
||||
ports:
|
||||
- "${OCR_PORT:-8100}:8100"
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
@@ -49,8 +33,6 @@ services:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
ocr-worker:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test:
|
||||
["CMD-SHELL", "curl -fsS http://127.0.0.1:3000/health/ready || exit 1"]
|
||||
@@ -64,7 +46,6 @@ services:
|
||||
DATABASE_URL: ${DATABASE_URL:-postgres://postgres:postgres@postgres:5432/order_site}
|
||||
DATABASE_SSL: ${DATABASE_SSL:-false}
|
||||
DATABASE_MAX_CONNECTIONS: ${DATABASE_MAX_CONNECTIONS:-10}
|
||||
OCR_BASE_URL: http://ocr-worker:8100
|
||||
CLAIM_BASE_URL: ${CLAIM_BASE_URL:-http://localhost/#/claim}
|
||||
TENCENT_REDEEM_PROOF_MODE: ${TENCENT_REDEEM_PROOF_MODE:-full}
|
||||
TENCENT_BROWSER_HEADLESS: ${TENCENT_BROWSER_HEADLESS:-true}
|
||||
|
||||
Reference in New Issue
Block a user