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