Revert "chore: change default service port from 3000 to 3001"

This reverts commit 0cf4eac0be.
This commit is contained in:
bill
2026-03-04 21:21:33 -08:00
parent 0cf4eac0be
commit 78649cad3b
2 changed files with 5 additions and 5 deletions

View File

@@ -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"]

View File

@@ -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