Przeglądaj źródła

fix: docker compose healthcheck failed (#593)

Pluto 2 lat temu
rodzic
commit
64cdb7eafb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      docker-compose.yml

+ 1 - 1
docker-compose.yml

@@ -23,7 +23,7 @@ services:
     depends_on:
       - redis
     healthcheck:
-      test: [ "CMD-SHELL", "curl -s http://localhost:3000/api/status | grep -o '\"success\":\\s*true' | awk '{print $2}' | grep 'true'" ]
+      test: [ "CMD-SHELL", "wget -q -O - http://localhost:3000/api/status | grep -o '\"success\":\\s*true' | awk -F: '{print $2}'" ]
       interval: 30s
       timeout: 10s
       retries: 3