Running spring boot application in a docker container and connecting it to a containerized MySQL server

  • create a common network so that spring boot and can also be added
command to create a network called my_network
add MySQL to the network
  • add the following
  • Build spring boot docker image




Software Engineer, London

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Flask for Dummies-a beginners’ guide to Flask(Part Duos!)

Docker, nginx and reverse-proxying

RPS NFT Art — Smart Contract Automatic Release of 1st and 2nd Prizes Analyzed

What are Formulas and Functions in Excel and How to Use them?

Monitoring Your Portfolio with Python

Sun, September 6

What should I include in my specs and what I shouldn’t? — 1

Algorithm: Minimum Spanning Tree

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Software Engineer, London

More from Medium

Profiling with Spring Boot

GraphQL with Spring Boot

Spring WebClient -Non-blocking, reactive client to perform HTTP operations

Spring @RestControllerAdvice When and Why?