However in our code references we will use the Spring Boot application that we had created in previous blog. You can use any Spring Boot application and provide its Dockerfile. The network names should be same as the networks we created in previous step.įor this we step need a sample Spring Boot application. Specified that this service is available on both internal and external networks.The host can now connect directly to Mysql database port 3306. Exposed Port 3306 to the host machine.Provided the startup parameters via environment variables.Provided the image tag, to specify that the Mysql container should be created from this docker image.Specified the service name as “ database“. ![]() Networks: # Specify the networks for this service
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |