Skip to content

A sample project to learn the basics of how spring mvc, docker, and postgresql can interact.

Notifications You must be signed in to change notification settings

zmose/spring-docker-postgresql-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot, Docker, PostgreSQL sample project

Project used to test Spring MVC, some Docker commands, and a tiny dash of PostgreSQL.

How to run

What you need installed

  • Docker
  • Your favorite flavor of JDK 21 (I like Amazon Corretto)
  • Maven (You can use another package manager like Gradle if you'd like)

Cmds to run

Package your project with maven:

mvn -U clean package

Run the docker compose to pull, build, and start your containers.

docker compose up

Go to http://localhost:8080/1 to see that a value was pulled from your PostgreSQL database.

About

A sample project to learn the basics of how spring mvc, docker, and postgresql can interact.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published