From cc648be8548f288dbf9c799cc082d596ad09713c Mon Sep 17 00:00:00 2001 From: Sylvain Huguet Date: Mon, 1 Apr 2024 02:07:44 +0200 Subject: [PATCH] Re-enable healthchecks, adjusted intervals & start-time --- Dockerfile | 4 ++-- docker-compose.yml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 40029c83..8ccd879b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ RUN npm cache clean --force \ EXPOSE 4100 -# HEALTHCHECK --interval=5m --timeout=3s \ -# CMD wget --no-verbose --tries=1 --spider http://localhost:4100/ || exit 1 +HEALTHCHECK --interval=30s --timeout=3s \ + CMD wget --no-verbose --tries=1 --spider http://puter.localhost:4100/test || exit 1 CMD [ "npm", "start" ] diff --git a/docker-compose.yml b/docker-compose.yml index 86754f82..7630d5a3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,9 +17,9 @@ services: volumes: - ./config:/opt/puter/app/volatile/config - ./data:/opt/puter/app/volatile/runtime - # healthcheck: - # test: wget --no-verbose --tries=1 --spider http://localhost:4100 || exit 1 - # interval: 5m - # timeout: 3s - # retries: 3 - # start_period: 2m \ No newline at end of file + healthcheck: + test: wget --no-verbose --tries=1 --spider http://puter.localhost:4100/test || exit 1 + interval: 30s + timeout: 3s + retries: 3 + start_period: 30s