From 484b24f53c8ed722cb4ab4be0926704d2429d367 Mon Sep 17 00:00:00 2001 From: chengkai3 Date: Sat, 2 May 2026 14:41:50 +0800 Subject: [PATCH] chore: align pro port mappings with dev for api and flower --- deploy/pro-deploy/.env | 2 ++ deploy/pro-deploy/compose.yml | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/deploy/pro-deploy/.env b/deploy/pro-deploy/.env index 50763fb..2e83f6c 100644 --- a/deploy/pro-deploy/.env +++ b/deploy/pro-deploy/.env @@ -12,6 +12,8 @@ POSTGRES_PORT=5434 REDIS_PORT=6379 MINIO_API_PORT=9000 MINIO_CONSOLE_PORT=9001 +API_PORT=8000 +FLOWER_PORT=5555 NEXT_PUBLIC_API_BASE_URL=https://quiz.example.com/api CELERY_LOG_LEVEL=INFO diff --git a/deploy/pro-deploy/compose.yml b/deploy/pro-deploy/compose.yml index 321a63d..137f640 100644 --- a/deploy/pro-deploy/compose.yml +++ b/deploy/pro-deploy/compose.yml @@ -75,8 +75,8 @@ services: MINIO_ENDPOINT: http://minio:9000 CELERY_BROKER_URL: redis://redis:6379/0 CELERY_RESULT_BACKEND: redis://redis:6379/1 - expose: - - "8000" + ports: + - "${API_PORT}:8000" volumes: - ./data/app:/app/data restart: unless-stopped @@ -150,8 +150,8 @@ services: CELERY_RESULT_BACKEND: redis://redis:6379/1 CELERY_TIMEZONE: ${CELERY_TIMEZONE} FLOWER_BASIC_AUTH: ${FLOWER_BASIC_AUTH} - expose: - - "5555" + ports: + - "${FLOWER_PORT}:5555" restart: unless-stopped web: