This commit is contained in:
Beatrice Acasandrei 2024-06-17 20:33:45 +03:00 коммит произвёл Sebastian Hengst
Родитель 08764e6170
Коммит 3e098fe970
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -18,7 +18,9 @@ function check_service () {
# Keep these in sync with DATABASE_URL.
echo "Checking database status at $DATABASE_URL"
if [[ ${DATABASE_URL:0:7} == "psql://" ]]; then
if [[ ${DATABASE_URL:0:27} == *"@host.docker.internal"* ]]; then
check_service "PostgreSQL" "host.docker.internal" 5432;
else
check_service "PostgreSQL" "postgres" 5432;
fi