From 97f77bcae7563d4f9187a1b4e6c23853bb58771c Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sat, 30 Sep 2023 12:32:04 -0700 Subject: [PATCH] Reduce timeout for healthcheck --- production.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production.Dockerfile b/production.Dockerfile index 8a0803c..1654a82 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=30s --timeout=30s --start-period=0s --start-interval=5s --retries=3 \ +HEALTHCHECK --interval=30s --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