Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
img-manager
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Lan
img-manager
Commits
f19dae76
Commit
f19dae76
authored
Mar 11, 2025
by
Ivan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove useless options
parent
2b4a3ca3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
Dockerfile
Dockerfile
+2
-1
deploy.yml
config/deploy.yml
+3
-9
No files found.
Dockerfile
View file @
f19dae76
...
@@ -74,7 +74,8 @@ ENTRYPOINT ["/rails/bin/docker-entrypoint"]
...
@@ -74,7 +74,8 @@ ENTRYPOINT ["/rails/bin/docker-entrypoint"]
EXPOSE
3000
EXPOSE
3000
# 添加健康检查,使用简单的curl请求检查应用是否响应
# 添加健康检查,使用简单的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
CMD curl -f http://localhost:3000/ || exit 1
# 使用正确的路径启动Rails服务器,并指定端口为3000
# 使用正确的路径启动Rails服务器,并指定端口为3000
...
...
config/deploy.yml
View file @
f19dae76
...
@@ -130,7 +130,7 @@ asset_path: false
...
@@ -130,7 +130,7 @@ asset_path: false
# Deployment configuration for better reliability
# Deployment configuration for better reliability
# 增加部署超时时间,给应用更多时间启动
# 增加部署超时时间,给应用更多时间启动
deploy_timeout
:
18
0
deploy_timeout
:
30
0
# 增加容器排水超时时间
# 增加容器排水超时时间
drain_timeout
:
60
drain_timeout
:
60
...
@@ -138,14 +138,8 @@ drain_timeout: 60
...
@@ -138,14 +138,8 @@ drain_timeout: 60
# 增加容器启动后的就绪延迟
# 增加容器启动后的就绪延迟
readiness_delay
:
30
readiness_delay
:
30
# 配置健康检查参数
# Kamal使用Docker的健康检查,不需要额外配置
health_check
:
# 健康检查已在Dockerfile中通过HEALTHCHECK指令配置
# 健康检查超时时间
timeout
:
5
# 健康检查间隔
interval
:
5
# 健康检查重试次数
retries
:
12
# Note: Run the setup script manually before deployment:
# Note: Run the setup script manually before deployment:
# scp ./bin/setup_volumes.sh root@45.78.59.154:/root/setup_volumes.sh
# scp ./bin/setup_volumes.sh root@45.78.59.154:/root/setup_volumes.sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment