mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-03-30 02:49:02 +00:00
Revert "chore: change default service port from 3000 to 3001"
This reverts commit 0cf4eac0be.
This commit is contained in:
@@ -73,11 +73,11 @@ RUN if [ ! -f "/app/config/config.js" ] && [ -f "/app/config/config.example.js"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 🌐 暴露端口
|
# 🌐 暴露端口
|
||||||
EXPOSE 3001
|
EXPOSE 3000
|
||||||
|
|
||||||
# 🏥 健康检查
|
# 🏥 健康检查
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
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"]
|
ENTRYPOINT ["dumb-init", "--", "/usr/local/bin/docker-entrypoint.sh"]
|
||||||
|
|||||||
@@ -11,14 +11,14 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
# 绑定地址:生产环境建议使用反向代理,设置 BIND_HOST=127.0.0.1
|
# 绑定地址:生产环境建议使用反向代理,设置 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:
|
volumes:
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
environment:
|
environment:
|
||||||
# 🌐 服务器配置
|
# 🌐 服务器配置
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3001
|
- PORT=3000
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
|
|
||||||
# 🔧 请求体大小配置
|
# 🔧 请求体大小配置
|
||||||
@@ -82,7 +82,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- claude-relay-network
|
- claude-relay-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user