From 2e5057ead2d5dd39d882112063ebfe7d155d4c65 Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sat, 30 Sep 2023 11:50:39 -0700 Subject: [PATCH] Add healthcheck --- production.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production.Dockerfile b/production.Dockerfile index 72329875..992baefd 100644 --- a/production.Dockerfile +++ b/production.Dockerfile @@ -78,7 +78,7 @@ USER rails:rails # Entrypoint prepares the database. 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 # Start the server by default, this can be overwritten at runtime