An open API service indexing awesome lists of open source software.

https://github.com/kh77/dockercompose-mysql

Spring boot docker compose with Mysql
https://github.com/kh77/dockercompose-mysql

docker docker-compose java spring-boot

Last synced: 2 months ago
JSON representation

Spring boot docker compose with Mysql

Awesome Lists containing this project

README

          

# Spring-Boot MySQL docker compose project

Run docker compose:
- docker-compose up

Run docker compose in the background:

- docker-compose up -d

Stop docker compose:

- 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

Docker compose file (docker-compose.yml) will build the DockerFile then create an image (springboot-app) then mysql image will be pulled and bind with springboot-app image.