From 5b80dcff12957467122ec65f3680572baee37a1f Mon Sep 17 00:00:00 2001
From: Kay E <kay@jointech.org>
Date: Wed, 10 Apr 2024 14:33:23 +0200
Subject: [PATCH] fix(DOCKER): Fix Docker healthchek

https://gitlab.servus.at/aura/aura/-/issues/332
---
 config/aura-web/docker-compose.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/aura-web/docker-compose.yml b/config/aura-web/docker-compose.yml
index 7b1647cd..4949a928 100644
--- a/config/aura-web/docker-compose.yml
+++ b/config/aura-web/docker-compose.yml
@@ -78,7 +78,7 @@ services:
           "curl",
           "-o",
           "/dev/null",
-          "http://localhost:8000/api/v1/"
+          "http://steering:8000/api/v1/"
         ]
 
   tank-postgres:
@@ -138,7 +138,7 @@ services:
       - auranet
       - internal-tank
     healthcheck:
-      test: [ "CMD", "nc", "-z", "-w", "3", "localhost", "8040" ]
+      test: [ "CMD", "nc", "-z", "-w", "3", "tank", "8040" ]
 
   dashboard:
     container_name: dashboard
@@ -153,7 +153,7 @@ services:
       AURA_PROTO: ${AURA_HOST_PROTO:-https}
       DASHBOARD_OIDC_CLIENT_ID: ${AURA_DASHBOARD_OIDC_CLIENT_ID:?dashboard client id}
     healthcheck:
-      test: [ "CMD", "nc", "-z", "-w", "3", "localhost", "80" ]
+      test: [ "CMD", "nc", "-z", "-w", "3", "dashboard", "80" ]
 
   dashboard-clock:
     container_name: dashboard-clock
-- 
GitLab