Stacktora / Templates / Phoenix + Postgres
Full-stack

Phoenix + Postgres boilerplate

Elixir Phoenix app with Postgres — fault-tolerant and real-time ready. One click generates a complete, runnable bootstrap — docker-compose, Makefile, Dockerfile, CI and more.

Use this template Browse all templates

The stack

Elixir (Phoenix) 1.20 PostgreSQL 5432

docker-compose.yml preview

# docker-compose.yml — generated by Stacktora
services:
  app:
    image: elixir:1.20-alpine
    command: mix phx.server
    ports:
      - "4000:4000"
    env_file: [ .env ]
  postgres:
    image: postgres:18-alpine
    ports:
      - "5432:5432"

What you get

docker-compose.ymlMakefileDockerfileREADME.md.env.example.gitignore.dockerignore.github/workflows/ci.yml.tool-versions.editorconfigProcfile … and more

Quickstart

# clone, then one command to a running stack
git clone … && cd app
$ make setup   # install toolchain + deps, build images
$ make dev     # boot the full stack
# → app live at localhost:4000

Related templates

Open Phoenix + Postgres in Stacktora