add docker compose

This commit is contained in:
xCyanGrizzly
2026-02-18 20:05:16 +01:00
parent 5f12c8425b
commit ec04e1bd0b
3 changed files with 31 additions and 40 deletions

View File

@@ -1,20 +1,9 @@
#!/bin/sh
set -e
echo "Dragon's Stash - Starting..."
# Run database migrations
echo "Running database migrations..."
npx prisma migrate deploy 2>/dev/null || {
echo "WARNING: Migration failed. Database may not be ready yet."
echo "Retrying in 5 seconds..."
sleep 5
npx prisma migrate deploy
}
npx prisma migrate deploy
echo "Migrations complete."
# Optionally seed database
if [ "$SEED_DATABASE" = "true" ]; then
echo "Seeding database..."
npx prisma db seed || echo "Seeding skipped or already done."