From 78649cad3b2fa03657a08d69a9e1d814ef47b326 Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 4 Mar 2026 21:21:33 -0800 Subject: [PATCH] Revert "chore: change default service port from 3000 to 3001" This reverts commit 0cf4eac0bed5840860321f9ce3ec712afa095eb2. --- Dockerfile | 4 ++-- docker-compose.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index df61eb86..932506a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -73,11 +73,11 @@ RUN if [ ! -f "/app/config/config.js" ] && [ -f "/app/config/config.example.js" fi # 🌐 暴露端口 -EXPOSE 3001 +EXPOSE 3000 # 🏥 健康检查 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ - CMD curl -f http://localhost:3001/health || exit 1 + CMD curl -f http://localhost:3000/health || exit 1 # 🚀 启动应用 ENTRYPOINT ["dumb-init", "--", "/usr/local/bin/docker-entrypoint.sh"] diff --git a/docker-compose.yml b/docker-compose.yml index a9befb1f..d8f78a24 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,14 +11,14 @@ services: restart: unless-stopped ports: # 绑定地址:生产环境建议使用反向代理,设置 BIND_HOST=127.0.0.1 - - "${BIND_HOST:-0.0.0.0}:${PORT:-3001}:3001" + - "${BIND_HOST:-0.0.0.0}:${PORT:-3000}:3000" volumes: - ./logs:/app/logs - ./data:/app/data environment: # 🌐 服务器配置 - NODE_ENV=production - - PORT=3001 + - PORT=3000 - HOST=0.0.0.0 # 🔧 请求体大小配置 @@ -82,7 +82,7 @@ services: networks: - claude-relay-network healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3001/health"] + test: ["CMD", "curl", "-f", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3