Java Spring Boot Dev Stack
Spring Boot + Postgres + Redis + Adminer. Maven dependency cache volume for fast rebuilds. Spring DevTools hot reload configured.
Java Spring Boot Dev Stack
A Spring Boot development environment that reloads on code changes without image rebuilds. Maven dependency caching keeps recompiles fast, and Postgres, Redis, and Adminer are all wired up from the start.
What's Included
- Java 21 LTS with Spring Boot 3.2
- Spring DevTools enabled for class-reloading on save
- Postgres 16 with Spring Data JPA pre-configured
- Redis 7 with Spring Data Redis and Lettuce client
- Adminer for visual DB management
- Maven dependency cache volume —
.m2survives restarts
Developer Experience
- Spring DevTools triggers a fast restart on any classpath change — mount your compiled classes for seamless reload
spring.datasource.urlandspring.redis.urlread from environment variables — no hard-coded credentials- Adminer pre-connected to Postgres on port 8081
- JVM flags pre-tuned for container environments (
-XX:+UseContainerSupport)
What You Get
docker-compose.yml— all four services with Maven cache volumeDockerfile— dev stage (with Maven) and release stage (JRE-only slim image)src/main/java/com/example/app/— starter application with health endpointsrc/main/resources/application.yml— fully environment-variable driven configpom.xml— Spring Boot parent, JPA, Redis, DevTools, Actuator.env.example,.gitignore,README.md
Service URLs
- App:
http://localhost:8080 - Actuator health:
http://localhost:8080/actuator/health - Adminer:
http://localhost:8081 - Postgres:
localhost:5432 - Redis:
localhost:6379