Skip to content

Run pool-coordinator migrations automatically on container startup#34

Merged
chrystianmartins merged 1 commit into
mainfrom
codex/fix-obsolete-version-attribute-in-docker-compose
Feb 9, 2026
Merged

Run pool-coordinator migrations automatically on container startup#34
chrystianmartins merged 1 commit into
mainfrom
codex/fix-obsolete-version-attribute-in-docker-compose

Conversation

@chrystianmartins

Copy link
Copy Markdown
Owner

Motivation

  • Ensure the database schema is applied before the app starts to avoid runtime errors like psycopg.errors.UndefinedTable: relation "users" does not exist, and remove the obsolete top-level version key warning in the compose file.

Description

  • Removed the top-level version key from docker-compose.yml and updated the pool-coordinator command to run alembic upgrade head before launching uvicorn (runs pip install -e .[dev] && alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8001).

Testing

  • Verified the change was committed (git show --stat) and attempted to validate the compose config with docker compose config, but Docker CLI is not available in this execution environment so runtime validation could not be completed.

Codex Task

@chrystianmartins
chrystianmartins merged commit 16a792d into main Feb 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant