Skip to content

Fix deployment migration network conflict - #41

Merged
HyxiaoGe merged 2 commits into
mainfrom
codex/fix-deploy-migration-network
Aug 18, 2026
Merged

HyxiaoGe merged 2 commits into
mainfrom
codex/fix-deploy-migration-network

Conversation

@HyxiaoGe

Copy link
Copy Markdown
Owner

What changed

  • add a deployment-only Compose override that clears the live auth service's fixed ingress IP for one-off migration containers
  • use that override for the Alembic deployment step
  • validate the merged Compose configuration in container CI

Root cause

The live auth container owns 10.203.0.3 on auth-edge. docker compose run auth ... inherited the same fixed address, so Docker rejected the migration container with Address already in use before Alembic ran.

Impact

The live service keeps its stable ingress address, while migration containers receive a dynamic address and can run alongside it.

Validation

  • docker compose -f docker-compose.yml -f docker-compose.migrate.yml config --quiet
  • asserted merged migration config has no ipv4_address
  • started and removed a one-off auth container while the live service remained ready
  • alembic current from the one-off container reached PostgreSQL and reported d9e0f1a2b3c4 (head)

@HyxiaoGe
HyxiaoGe marked this pull request as ready for review August 18, 2026 09:07
@HyxiaoGe
HyxiaoGe merged commit b387f77 into main Aug 18, 2026
6 checks passed
@HyxiaoGe
HyxiaoGe deleted the codex/fix-deploy-migration-network branch August 18, 2026 09:07
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.

1 participant