A new module, spring-boot-docker-compose introduced in Spring Boot 3.1.0 which provides integration with Docker Compose. When your app is starting up, the Docker Compose integration will look for a configuration file in the current working directory and automatically bring the docker containers up and make connection configurations.
- Spring-Boot-3.1-Release-Notes
- spring-boot-docker-compose documentation
- docker pull mysql
- docker run -p 3306:3306 --name accountsdb -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=accountsdb -d mysql
For any questions, feedback, or suggestions. Feel free to reach out to me on LinkedIn, or on Email - tutor@eazybytes.com