{"id":14972113,"url":"https://github.com/bezkoder/docker-compose-spring-boot-mysql","last_synced_at":"2025-09-06T22:40:42.528Z","repository":{"id":44849431,"uuid":"397799103","full_name":"bezkoder/docker-compose-spring-boot-mysql","owner":"bezkoder","description":"Dockerize Spring Boot and MySQL example - using Docker Compose to connect Spring Boot to MySQL","archived":false,"fork":false,"pushed_at":"2024-05-14T09:48:28.000Z","size":6,"stargazers_count":81,"open_issues_count":4,"forks_count":85,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-03T15:37:18.163Z","etag":null,"topics":["docker","docker-compose","dockerfile","mysql","mysql-database","rest-api","spring","spring-boot","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bezkoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-08-19T03:02:39.000Z","updated_at":"2025-04-17T16:17:38.000Z","dependencies_parsed_at":"2025-05-03T15:42:16.214Z","dependency_job_id":null,"html_url":"https://github.com/bezkoder/docker-compose-spring-boot-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bezkoder/docker-compose-spring-boot-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fdocker-compose-spring-boot-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fdocker-compose-spring-boot-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fdocker-compose-spring-boot-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fdocker-compose-spring-boot-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/docker-compose-spring-boot-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fdocker-compose-spring-boot-mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273973992,"owners_count":25200579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","dockerfile","mysql","mysql-database","rest-api","spring","spring-boot","springboot"],"created_at":"2024-09-24T13:46:24.494Z","updated_at":"2025-09-06T22:40:42.508Z","avatar_url":"https://github.com/bezkoder.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Compose Spring Boot and MySQL example\r\n\r\n## Run the System\r\nWe can easily run the whole with only a single command:\r\n```bash\r\ndocker compose up\r\n```\r\n\r\nDocker will pull the MySQL and Spring Boot images (if our machine does not have it before).\r\n\r\nThe services can be run on the background with command:\r\n```bash\r\ndocker compose up -d\r\n```\r\n\r\n## Stop the System\r\nStopping all the running containers is also simple with a single command:\r\n```bash\r\ndocker compose down\r\n```\r\n\r\nIf you need to stop and remove all containers, networks, and all images used by any service in \u003cem\u003edocker-compose.yml\u003c/em\u003e file, use the command:\r\n```bash\r\ndocker compose down --rmi all\r\n```\r\n\r\nFor more detail, please visit:\r\n\u003e [Docker Compose Spring Boot and MySQL example](https://www.bezkoder.com/docker-compose-spring-boot-mysql/)\r\n\r\nRelated Posts:\r\n\u003e [Spring Boot JPA + MySQL - Building Rest CRUD API example](https://www.bezkoder.com/spring-boot-jpa-crud-rest-api/)\r\n\r\n\u003e [Spring Boot R2DBC + MySQL example](https://www.bezkoder.com/spring-r2dbc-mysql/)\r\n\r\n\u003e [Spring Boot + GraphQL + MySQL example](https://www.bezkoder.com/spring-boot-graphql-mysql-jpa/)\r\n\r\n\u003e [Spring Boot Rest XML example – Web service with XML Response](https://www.bezkoder.com/spring-boot-rest-xml/)\r\n\r\n\u003e [Spring Boot: Upload CSV file data into MySQL Database](https://www.bezkoder.com/spring-boot-upload-csv-file/)\r\n\r\n\u003e [Spring Boot: Upload Excel file data into MySQL Database](https://www.bezkoder.com/spring-boot-upload-excel-file-database/)\r\n\r\n\u003e [Spring Boot Validate Request Body](https://www.bezkoder.com/spring-boot-validate-request-body/)\r\n\r\n\u003e [Spring Boot and Swagger 3 example](https://www.bezkoder.com/spring-boot-swagger-3/)\r\n\r\n\u003e [Spring Boot Redis Cache example](https://www.bezkoder.com/spring-boot-redis-cache-example/)\r\n\r\n\u003e [Spring Boot File upload example](https://www.bezkoder.com/spring-boot-file-upload/)\r\n\r\n\u003e [Exception handling: @RestControllerAdvice example in Spring Boot](https://www.bezkoder.com/spring-boot-restcontrolleradvice/)\r\n\r\n\u003e [Spring Boot Repository Unit Test with @DataJpaTest](https://www.bezkoder.com/spring-boot-unit-test-jpa-repo-datajpatest/)\r\n\r\n\u003e [Spring Boot Rest Controller Unit Test with @WebMvcTest](https://www.bezkoder.com/spring-boot-webmvctest/)\r\n\r\n\u003e [Deploy Spring Boot App on AWS – Elastic Beanstalk](https://www.bezkoder.com/deploy-spring-boot-aws-eb/)\r\n\r\nSecurity:\r\n\u003e [Spring Boot + Spring Security JWT Authentication \u0026 Authorization](https://www.bezkoder.com/spring-boot-jwt-authentication/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fdocker-compose-spring-boot-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Fdocker-compose-spring-boot-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fdocker-compose-spring-boot-mysql/lists"}