From cea8fa99adec4af0cd6640ba8838570e91b0c89e Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 9 May 2026 17:44:23 +0800 Subject: [PATCH] update docker port --- api/.env.staging | 1 + api/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/.env.staging b/api/.env.staging index 4758c2e..dab7bd9 100644 --- a/api/.env.staging +++ b/api/.env.staging @@ -1,5 +1,6 @@ LIFE_ECHO_API_HOST_BIND=0.0.0.0 LIFE_ECHO_API_HOST_PORT=8000 +POSTGRES_HOST_PORT=15432 # ============================================================================= # Life Echo API — staging(预发) diff --git a/api/docker-compose.yml b/api/docker-compose.yml index 947f5df..0e13a42 100644 --- a/api/docker-compose.yml +++ b/api/docker-compose.yml @@ -4,7 +4,7 @@ services: image: m.daocloud.io/docker.io/pgvector/pgvector:pg17 container_name: life-echo-postgres ports: - - "127.0.0.1:5432:5432" # 仅绑定 localhost,通过 SSH 隧道访问 + - "127.0.0.1:${POSTGRES_HOST_PORT:-5432}:5432" # 仅绑定 localhost,通过 SSH 隧道访问 environment: POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}