Stacktora / Templates / Node + Postgres + Redis + Mail
Full-stack

Node + Postgres + Redis + Mail boilerplate

Full Node stack: Postgres, Redis cache, and local email catching. One click generates a complete, runnable bootstrap — docker-compose, Makefile, Dockerfile, CI and more.

Use this template Browse all templates

The stack

Node.js 24 PostgreSQL 5432Redis 6379 Mailpit 1025

docker-compose.yml preview

# docker-compose.yml — generated by Stacktora
services:
  app:
    image: node:24-alpine
    command: npm run dev
    ports:
      - "3000:3000"
    env_file: [ .env ]
  postgres:
    image: postgres:18-alpine
    ports:
      - "5432:5432"
  redis:
    image: redis:8-alpine
    ports:
      - "6379:6379"
  mailpit:
    image: axllent/mailpit
    ports:
      - "1025:1025"
      - "8025:8025"

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:3000

Related templates

Open Node + Postgres + Redis + Mail in Stacktora