Skip to content

Add database migration step to Docker entrypoint#30

Merged
artugro merged 1 commit intoIntunoAI:mainfrom
artugro:claude/docker-alembic-migrations-0tONx
Apr 9, 2026
Merged

Add database migration step to Docker entrypoint#30
artugro merged 1 commit intoIntunoAI:mainfrom
artugro:claude/docker-alembic-migrations-0tONx

Conversation

@artugro
Copy link
Copy Markdown
Collaborator

@artugro artugro commented Apr 9, 2026

Summary

This change adds automatic database migration execution to the Docker container startup process, ensuring the database schema is up-to-date before the application starts.

Key Changes

  • Added alembic upgrade head command to the Docker entrypoint script
  • Migrations now run automatically during container initialization, before the FastAPI application starts

Implementation Details

The migration command is executed after Redis initialization but before the main application process, ensuring:

  • The database is properly migrated to the latest schema version
  • Any pending migrations are applied automatically on container startup
  • The application only starts after migrations complete successfully

https://claude.ai/code/session_01EkgZTPPvHWLmGuqDc5LrXT

@artugro artugro merged commit fe013a2 into IntunoAI:main Apr 9, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants