Elixir Phoenix Dev Stack
Elixir + Phoenix + Postgres + Redis. LiveView ready, mix tasks via docker exec, iex remote shell documented.
Elixir Phoenix Dev Stack
Phoenix up and running with a single command. Postgres and Redis are pre-wired, LiveView dependencies are included, and iex --remsh access is documented so you can drop into a running node without rebuilding the container.
What's Included
- Elixir 1.20 with Phoenix 1.7 and the full LiveView dependency chain
- Postgres 16 as the primary Ecto data store
- Redis 7 for Phoenix PubSub (via
redix) or session storage - Mix deps cached in a named volume —
mix deps.getruns once, not on every restart
Developer Experience
- Phoenix server starts with
mix phx.serveron container up — LiveReload active for templates and assets - Run mix tasks from your host:
docker compose exec app mix ecto.migrate - Remote IEx shell:
docker compose exec app iex --sname console --remsh app@elite Repoconfigured and ready — no manualconfig/dev.exsedits needed
What You Get
docker-compose.yml— Phoenix app + Postgres + RedisDockerfile— multi-stage: dev (with Mix) and release (viamix release)config/dev.exspatch — Ecto URL and Redis connection pre-set from environment variablesentrypoint.sh— runsmix deps.get,mix ecto.create,mix ecto.migrateon first start.env.example,.gitignore,README.md
Service URLs
- Phoenix:
http://localhost:4000 - Postgres:
localhost:5432 - Redis:
localhost:6379