chore: plug in minio storage
This commit is contained in:
15
docker-entrypoint.sh
Executable file
15
docker-entrypoint.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user