SpringBoot + PostgreSQL Docker Compose bare minimum app System Requirement Maven Java 8 Docker for Windows or Mac Package the Jar cd <project dir> mvn clean install Build and Run Image Make sure docker is running i.e. docker ps run docker-compose docker-compose up Go to browser and type localhost:8080 we should see landing page of our app Congrats! you have springboot app with postgresql running in separate containers.