Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rescheduled 🗓️
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3lingo
rescheduled 🗓️
Commits
4be6a40d
Unverified
Commit
4be6a40d
authored
3 months ago
by
Felix Eckhofer
Browse files
Options
Downloads
Patches
Plain Diff
Add healthcheck to Dockerfile
This allows for safer zero-downtime upgrades.
parent
74aadbb6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+2
-0
2 additions, 0 deletions
Dockerfile
with
2 additions
and
0 deletions
Dockerfile
+
2
−
0
View file @
4be6a40d
...
...
@@ -57,6 +57,8 @@ USER rails:rails
# Entrypoint prepares the database.
ENTRYPOINT
["/rails/bin/docker-entrypoint"]
HEALTHCHECK
--timeout=5s --start-period=20s CMD curl -sS --fail http://localhost:3000/up || exit 1
# Start the server by default, this can be overwritten at runtime
EXPOSE
3000
CMD
["./bin/rails", "server"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment