fix: docker-compose startup, general settings

This commit is contained in:
2025-12-02 14:15:25 +01:00
parent 79b8535304
commit a140df35c5
9 changed files with 77 additions and 44 deletions

View File

@@ -1,6 +1,16 @@
#!/bin/sh
set -e
# Wait for PostgreSQL to be ready
if [ -n "$DATABASE_URI" ]; then
echo "Waiting for PostgreSQL to be ready..."
until wget -q --spider http://postgresql:5432 2>/dev/null || nc -z postgresql 5432; do
echo "PostgreSQL is unavailable - sleeping"
sleep 2
done
echo "PostgreSQL is up"
fi
# Wait for MinIO to be ready
if [ -n "$MINIO_ENDPOINT" ]; then
echo "Waiting for MinIO to be ready..."