What problem does it solve?
Bootstraps production-ready Docker and release configuration for Phoenix applications so you can reliably build, run, migrate, and deploy containers without ad-hoc handoffs.
Core Features & Use Cases
- Generates Phoenix release + Docker scaffolding using
mix phx.gen.release --docker, including the multi-stage Dockerfile, runtime/migration overlays, and Docker exclusions.
- Configures production runtime via environment variables by updating
config/runtime.exs to require DATABASE_URL and SECRET_KEY_BASE and to set host/port/pool settings.
- Supports containerized migration workflows through generated migrate helpers (
rel/overlays/bin/migrate) or in-container release evaluation.
Use case: preparing a Phoenix app for a CI/CD pipeline that produces a deployable container image with proper release entrypoints and reliable migration steps.
Quick Start
Run the release generator with Docker support, then build and run the resulting image by setting DATABASE_URL and SECRET_KEY_BASE in your container environment.