Spring + Postgres + Kafka boilerplate
Spring Boot with Postgres and a single-node Kafka broker + consumer. One click generates a complete, runnable bootstrap — docker-compose, Makefile, Dockerfile, CI and more.
The stack
Java (Spring) 21
PostgreSQL 5432 Apache Kafka 9092 Background worker
docker-compose.yml preview
# docker-compose.yml — generated by Stacktora
services:
app:
image: eclipse-temurin:21-jdk
command: ./mvnw spring-boot:run
ports:
- "8080:8080"
env_file: [ .env ]
postgres:
image: postgres:18-alpine
ports:
- "5432:5432"
kafka:
image: apache/kafka:4.0.0
ports:
- "9092:9092"
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:8080
Related templates
Event streaming (Kafka)
Node app with Postgres and a single-node Kafka broker + worker.
Node.jspostgres
Event streaming (NATS)
Go service with Postgres and NATS JetStream for messaging + worker.
Gopostgres
Next.js + PostgreSQL
React framework with a Postgres database — the classic full-stack starting point.
Node.jspostgres
Django + Postgres + Redis
Django with Postgres and a Redis-backed Celery worker for background jobs.
Pythonpostgresredis
