Skip to content

Commit

Permalink
Reduce interval for healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Sep 30, 2023
1 parent 97f77bc commit cb729ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion production.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ USER rails:rails
# Entrypoint prepares the database.
ENTRYPOINT ["/rails/bin/docker-entrypoint-production"]

HEALTHCHECK --interval=30s --timeout=3s --start-period=0s --start-interval=5s --retries=3 \
HEALTHCHECK --interval=5s --timeout=3s --start-period=0s --start-interval=5s --retries=3 \
CMD curl -f http://localhost:3000/up || exit 1

# Start the server by default, this can be overwritten at runtime
Expand Down

0 comments on commit cb729ad

Please sign in to comment.