Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bezkoder/docker-compose-spring-boot-mysql
Dockerize Spring Boot and MySQL example - using Docker Compose to connect Spring Boot to MySQL
https://github.com/bezkoder/docker-compose-spring-boot-mysql
docker docker-compose dockerfile mysql mysql-database rest-api spring spring-boot springboot
Last synced: 3 months ago
JSON representation
Dockerize Spring Boot and MySQL example - using Docker Compose to connect Spring Boot to MySQL
- Host: GitHub
- URL: https://github.com/bezkoder/docker-compose-spring-boot-mysql
- Owner: bezkoder
- Created: 2021-08-19T03:02:39.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T09:48:28.000Z (9 months ago)
- Last Synced: 2024-10-30T05:42:09.347Z (3 months ago)
- Topics: docker, docker-compose, dockerfile, mysql, mysql-database, rest-api, spring, spring-boot, springboot
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 76
- Watchers: 3
- Forks: 85
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose Spring Boot and MySQL example
## Run the System
We can easily run the whole with only a single command:
```bash
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:
```bash
docker compose up -d
```## Stop the System
Stopping all the running containers is also simple with a single command:
```bash
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:
```bash
docker compose down --rmi all
```For more detail, please visit:
> [Docker Compose Spring Boot and MySQL example](https://www.bezkoder.com/docker-compose-spring-boot-mysql/)Related Posts:
> [Spring Boot JPA + MySQL - Building Rest CRUD API example](https://www.bezkoder.com/spring-boot-jpa-crud-rest-api/)> [Spring Boot R2DBC + MySQL example](https://www.bezkoder.com/spring-r2dbc-mysql/)
> [Spring Boot + GraphQL + MySQL example](https://www.bezkoder.com/spring-boot-graphql-mysql-jpa/)
> [Spring Boot Rest XML example – Web service with XML Response](https://www.bezkoder.com/spring-boot-rest-xml/)
> [Spring Boot: Upload CSV file data into MySQL Database](https://www.bezkoder.com/spring-boot-upload-csv-file/)
> [Spring Boot: Upload Excel file data into MySQL Database](https://www.bezkoder.com/spring-boot-upload-excel-file-database/)
> [Spring Boot Validate Request Body](https://www.bezkoder.com/spring-boot-validate-request-body/)
> [Spring Boot and Swagger 3 example](https://www.bezkoder.com/spring-boot-swagger-3/)
> [Spring Boot Redis Cache example](https://www.bezkoder.com/spring-boot-redis-cache-example/)
> [Spring Boot File upload example](https://www.bezkoder.com/spring-boot-file-upload/)
> [Exception handling: @RestControllerAdvice example in Spring Boot](https://www.bezkoder.com/spring-boot-restcontrolleradvice/)
> [Spring Boot Repository Unit Test with @DataJpaTest](https://www.bezkoder.com/spring-boot-unit-test-jpa-repo-datajpatest/)
> [Spring Boot Rest Controller Unit Test with @WebMvcTest](https://www.bezkoder.com/spring-boot-webmvctest/)
> [Deploy Spring Boot App on AWS – Elastic Beanstalk](https://www.bezkoder.com/deploy-spring-boot-aws-eb/)
Security:
> [Spring Boot + Spring Security JWT Authentication & Authorization](https://www.bezkoder.com/spring-boot-jwt-authentication/)