Go to file
google-labs-jules[bot] 4540ad359e Fix(docker): Run Alembic migrations on container startup
This commit introduces changes to ensure that Alembic database migrations
are automatically applied when the backend Docker container starts.

Key changes:
- Added `be/entrypoint.sh`: This script first runs `alembic upgrade head`
  to apply any pending migrations and then executes the main container
  command (e.g., starting Uvicorn).
- Modified `be/Dockerfile`:
    - The `entrypoint.sh` script is copied into the image and made executable.
    - The Docker `ENTRYPOINT` is set to this script, ensuring migrations
      run before the application starts.
- Updated `docker-compose.yml`:
    - The `DATABASE_URL` for the `backend` service has been set to the
      Neon database URL you provided.
- Verified `be/alembic/env.py`: Confirmed that it correctly sources the
  `DATABASE_URL` from environment variables for Alembic to use.

These changes address the issue where migrations were not being run,
preventing the application from starting correctly.
2025-06-01 17:10:40 +00:00
.cursor/rules feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
.gitea/workflows refactor: Optimize Dockerfiles and deployment workflow for improved performance and reliability 2025-06-01 16:26:49 +02:00
be Fix(docker): Run Alembic migrations on container startup 2025-06-01 17:10:40 +00:00
docs feat: Implement recurring expenses feature with scheduling and management 2025-05-22 16:37:14 +02:00
fe fix ig 2025-06-01 16:49:21 +02:00
docker-compose.prod.yml refactor: Update Docker configurations for improved environment variable handling 2025-06-01 15:41:42 +02:00
docker-compose.yml Fix(docker): Run Alembic migrations on container startup 2025-06-01 17:10:40 +00:00
env.production.template feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00
mitlist_doc.md feat: Implement recurring expenses feature with scheduling and management 2025-05-22 16:37:14 +02:00
notes.md feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
PRODUCTION.md feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00