Skip to content
Snippets Groups Projects
Unverified Commit 4be6a40d authored by Felix Eckhofer's avatar Felix Eckhofer :man_dancing:
Browse files

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
......@@ -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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment