A small example of build docker compose for spring boot application service connect to mysql service
docker rm -f mysql-springboot-container springboot-docker-container
docker-compose -f docker-compose.dev.yml up -d --build
Option "-d" leaves the service execution running in the background
http://localhost:8085/students/insertStudent
Param | value |
---|---|
name | Duc Thanh |
birthYear | 2002 |
http://localhost:8085/students/showAll