Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrice-acasandrei authored and Archaeopteryx committed Jun 25, 2024
1 parent 08764e6 commit 3e098fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3e098fe

Please sign in to comment.