From de544d1359b709e49b43a7217e9bf7fe3c7c8211 Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Sun, 19 Sep 2021 19:32:23 +0200 Subject: [PATCH] Change the hostname to localhost due to containers living in same pod --- docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 3052127..4686c9f 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -6,8 +6,8 @@ if [ "${1#-}" != "$1" ]; then set -- apache2-foreground "$@" fi - while ! curl mysql:3306; do - sleep 1 + while ! curl localhost:3306; do + sleep 5 done php artisan cache:clear