Add healthcheck

This commit is contained in:
Ryan W
2023-09-30 11:50:39 -07:00
parent 0c592efa51
commit 2e5057ead2
+1 -1
View File
@@ -78,7 +78,7 @@ USER rails:rails
# Entrypoint prepares the database. # Entrypoint prepares the database.
ENTRYPOINT ["/rails/bin/docker-entrypoint-production"] ENTRYPOINT ["/rails/bin/docker-entrypoint-production"]
HEALTHCHECK --interval=5m --timeout=3s --start-period=30s \ HEALTHCHECK --interval=5s --timeout=3s --retries=3 --start-period=30s \
CMD curl -f http://localhost:3000/up || exit 1 CMD curl -f http://localhost:3000/up || exit 1
# Start the server by default, this can be overwritten at runtime # Start the server by default, this can be overwritten at runtime