Note : For detail explanation of how to dockerize simple spring boot Java application you can visit my website at guides to code
'Uses Docker Image available at docker hub link below and postgres official docker image to run the application with docker-compose'
and to run, type the command docker run -p 8080:8080 badripaudel77/info-keeper-spring-boot-docker:my-info-app
and hit localhost:8080
in browser and you should good to see the result.
This branch will use docker compose to create image, run as application wants to run with database docker image.
For reference : Docker compose at Baeldung
Spring Web, Hibernate, Data JPA, Thymeleaf, Security, PostgresSQL
- java -> All the source codes
- static -> All CSS, JS & Images and all static files if any
- templates -> All HTML files [thymeleaf]
- application.properties -> all application properties
- pom.xml file -> Includes all the dependencies required
docker-compose up