Skip to content

Dockerize Spring Boot and MySQL example - using Docker Compose to connect Spring Boot to MySQL

Notifications You must be signed in to change notification settings

badalb/docker-compose-spring-boot-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose Spring Boot and MySQL example

Run the System

We can easily run the whole with only a single command:

docker-compose up

Docker will pull the MySQL and Spring Boot images (if our machine does not have it before).

The services can be run on the background with command:

docker-compose up -d

Stop the System

Stopping all the running containers is also simple with a single command:

docker-compose down

If you need to stop and remove all containers, networks, and all images used by any service in docker-compose.yml file, use the command:

docker-compose down --rmi all

For more detail, please visit:

Docker Compose Spring Boot and MySQL example

Related Posts:

Spring Boot JPA + MySQL - Building Rest CRUD API example

Spring Boot + GraphQL + MySQL example

Spring Boot Rest XML example – Web service with XML Response

Spring Boot: Upload CSV file data into MySQL Database

Spring Boot: Upload Excel file data into MySQL Database

Deploy Spring Boot App on AWS – Elastic Beanstalk

Security:

Spring Boot + Spring Security JWT Authentication & Authorization

About

Dockerize Spring Boot and MySQL example - using Docker Compose to connect Spring Boot to MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.7%
  • Shell 2.7%
  • Dockerfile 1.6%