From 06be0fb351d5c64db00fe05211a7a7b72605ebf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=A9=EC=9C=A4=EC=84=B1?= <87403078+hys0star@users.noreply.github.com> Date: Tue, 26 Oct 2021 17:13:39 +0900 Subject: [PATCH] Add healthcheck for docker-compose --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ea1d2993..cc62d6e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,11 @@ services: full_refresh: false https_only: false domain: + healthcheck: + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 + interval: 30s + timeout: 5s + retries: 2 depends_on: - postgres