瀏覽代碼

Add healthcheck back for ci containers

Jamie Curnow 4 年之前
父節點
當前提交
5e9ff4d2bf
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      docker/docker-compose.ci.yml

+ 8 - 0
docker/docker-compose.ci.yml

@@ -20,6 +20,10 @@ services:
       - 443
     depends_on:
       - db
+    healthcheck:
+      test: ["CMD", "/bin/check-health"]
+      interval: 10s
+      timeout: 3s
 
   fullstack-sqlite:
     image: ${IMAGE}:ci-${BUILD_NUMBER}
@@ -33,6 +37,10 @@ services:
       - 81
       - 80
       - 443
+    healthcheck:
+      test: ["CMD", "/bin/check-health"]
+      interval: 10s
+      timeout: 3s
 
   db:
     image: jc21/mariadb-aria