Files
meal-planner/docker-entrypoint.sh

16 lines
321 B
Bash
Executable File

#!/bin/sh
set -e
# Wait for MinIO to be ready
if [ -n "$MINIO_ENDPOINT" ]; then
echo "Waiting for MinIO to be ready..."
until wget -q --spider "$MINIO_ENDPOINT/minio/health/live" 2>/dev/null; do
echo "MinIO is unavailable - sleeping"
sleep 2
done
echo "MinIO is up"
fi
# Start the application
exec "$@"