Add initial Docker and Alembic setup

Introduce a `docker-compose.yml` to define the services for backend and database with health checks. Add Alembic configurations for database migrations and an initial empty migration. Include backend-related Docker setup with an entrypoint script for database migration execution.
This commit is contained in:
2025-02-27 12:50:44 +01:00
parent 1d00b092fd
commit 3f1e1320f2
9 changed files with 266 additions and 0 deletions

8
backend/entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -e
echo "Starting Backend"
# Apply database migrations
alembic upgrade head
# Execute the command passed to docker run
exec "$@"