mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 09:33:39 +02:00
- Add Dockerfile and docker-entrypoint.sh for planta-backend - Add planta-backend service to docker-compose.macmini.yml (port 3022) - Add matrix-planta-bot service to docker-compose.macmini.yml (port 4022) - Configure dependencies: mana-auth, minio, redis, synapse, planta-backend Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
529 B
Bash
23 lines
529 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
echo "=== Planta Backend Entrypoint ==="
|
|
|
|
# Wait for PostgreSQL to be ready
|
|
echo "Waiting for PostgreSQL..."
|
|
until pg_isready -h ${DB_HOST:-postgres} -p ${DB_PORT:-5432} -U ${DB_USER:-postgres} 2>/dev/null; do
|
|
echo "PostgreSQL is unavailable - sleeping"
|
|
sleep 2
|
|
done
|
|
echo "PostgreSQL is up!"
|
|
|
|
cd /app/apps/planta/apps/backend
|
|
|
|
# Run schema push
|
|
echo "Pushing database schema..."
|
|
npx drizzle-kit push --force
|
|
echo "Schema push completed!"
|
|
|
|
# Execute the main command
|
|
echo "Starting application..."
|
|
exec "$@"
|