bootstrap-phoenix-docker

Bootstraps Docker release configuration for Phoenix applications with multi-stage images.

1|Updated May 7, 2026
One-click install
npx skills add https://github.com/agoodway/GoodSkills --skill bootstrap-phoenix-docker
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bootstrap-phoenix-docker
Source: https://github.com/agoodway/GoodSkills/tree/main/skills/bootstrap-phoenix-docker
Command: npx skills add https://github.com/agoodway/GoodSkills --skill bootstrap-phoenix-docker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about bootstrap-phoenix-docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I containerize an existing Phoenix application with Docker for production deployment?▼

To containerize a Phoenix application for production deployment, you can generate Docker release scaffolding using `mix phx.gen.release --docker`, which creates a multi-stage Dockerfile and release entrypoints for reliable containerized deployment.

How do I configure Phoenix runtime environment variables for Docker releases?▼

Configuring Phoenix runtime environment variables for Docker releases involves updating `config/runtime.exs` to require `DATABASE_URL` and `SECRET_KEY_BASE` from the container environment, alongside setting host, port, and pool configurations.

How do I run Ecto migrations inside a Docker container for a Phoenix release?▼

Running Ecto migrations inside a Docker container for a Phoenix release uses generated migrate helpers like `rel/overlays/bin/migrate` or in-container release evaluation to ensure reliable database schema updates during deployment.

What is the best way to set up a CI/CD pipeline for Phoenix Docker releases?▼

Setting up a CI/CD pipeline for Phoenix Docker releases requires producing a deployable multi-stage container image with proper release entrypoints and reliable migration steps, ensuring the build pipeline outputs a production-ready artifact.

Do I need to manually write a Dockerfile when using Phoenix release generation?▼

You do not need to manually write a Dockerfile when using Phoenix release generation, as `mix phx.gen.release --docker` automatically produces the multi-stage Dockerfile, runtime overlays, and Docker exclusions required for containerized deployment.

Can I use this Docker release setup for Phoenix apps that rely heavily on Ecto database operations?▼

Yes, this Docker release setup supports Phoenix apps relying on Ecto database operations by configuring runtime environment variables for database connections and providing containerized migration workflows to manage schema updates reliably.