Docker-Compose is like awesome!
It requires a bit of setup for each project, but you're in the right place it's easy for everyone on a team to have the same setup.
Docker-compose is kind of a deep dive topic in itself.
But you'll come across these two files
Your Dockerfile, might look a bit like this:
They normally are a bit more complicated, I was a bit limited by what I wanted on this slide.
If you're are interested in a better example for Rails ping me after this, I have a way better file on my GitHub!
Here is what the docker-compose file looks like, when you run that "docker-compose up" command it's going to go into here and turn on each of these services in their own virtual machine.
When I first started docker, I found this file a bit intimidating. But once break it down a bit, that's just saying "We want a database server & our rails app, plus use our local directory for the data"
Once you've got the hang of Docker, you can pretty much start each project with the same command.
It's really super!