This commit is contained in:
2025-02-08 17:25:44 +05:00
parent eb600b7a0c
commit 871d604ef4
5 changed files with 98 additions and 0 deletions

14
.build/prod/entrypoint.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
if [ "$DATABASE" = "postgres" ]
then
echo "Waiting for postgres..."
while ! nc -z $POSTGRES_HOST $POSTGRES_PORT; do
sleep 0.1
done
echo "PostgreSQL started"
fi
exec "$@"