Commit f19dae76 by Ivan

fix: remove useless options

parent 2b4a3ca3
......@@ -74,7 +74,8 @@ ENTRYPOINT ["/rails/bin/docker-entrypoint"]
EXPOSE 3000
# 添加健康检查,使用简单的curl请求检查应用是否响应
HEALTHCHECK --interval=5s --timeout=3s --start-period=30s --retries=3 \
# 增加start-period到120秒,给应用更多启动时间
HEALTHCHECK --interval=10s --timeout=5s --start-period=120s --retries=10 \
CMD curl -f http://localhost:3000/ || exit 1
# 使用正确的路径启动Rails服务器,并指定端口为3000
......
......@@ -130,7 +130,7 @@ asset_path: false
# Deployment configuration for better reliability
# 增加部署超时时间,给应用更多时间启动
deploy_timeout: 180
deploy_timeout: 300
# 增加容器排水超时时间
drain_timeout: 60
......@@ -138,14 +138,8 @@ drain_timeout: 60
# 增加容器启动后的就绪延迟
readiness_delay: 30
# 配置健康检查参数
health_check:
# 健康检查超时时间
timeout: 5
# 健康检查间隔
interval: 5
# 健康检查重试次数
retries: 12
# Kamal使用Docker的健康检查,不需要额外配置
# 健康检查已在Dockerfile中通过HEALTHCHECK指令配置
# Note: Run the setup script manually before deployment:
# scp ./bin/setup_volumes.sh root@45.78.59.154:/root/setup_volumes.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment