1
0
Эх сурвалжийг харах

Re-enable healthchecks, adjusted intervals & start-time

Sylvain Huguet 1 жил өмнө
parent
commit
cc648be854
2 өөрчлөгдсөн 8 нэмэгдсэн , 8 устгасан
  1. 2 2
      Dockerfile
  2. 6 6
      docker-compose.yml

+ 2 - 2
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" ]

+ 6 - 6
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
+    healthcheck:
+      test: wget --no-verbose --tries=1 --spider http://puter.localhost:4100/test || exit 1
+      interval: 30s
+      timeout: 3s
+      retries: 3
+      start_period: 30s