Explorar el Código

add docker health check

Richard Köhl hace 2 años
padre
commit
453eff7479
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      docker-compose.yml

+ 5 - 0
docker-compose.yml

@@ -13,3 +13,8 @@ services:
     volumes:
       - ./src:/app/src:ro
     command: ["deno", "task", "dev"]
+    healthcheck:
+      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:1993/health"]
+      interval: 10s
+      timeout: 2s
+      retries: 3