In this section, we will learn about Docker Compose, its file, and its commands, using a sample application developed by Docker called the Voting App.
The Voting App is a Flask application written in Python to vote between Cats and Dogs.
This vote is then transferred to Redis, which acts as an in-memory DB here. The worker application, written in .NET, then processes this vote and inserts it in the persistent database — the Postgres container here.
Finally, the result of the vote is displayed via a web application that is written in NodeJS.
Web Application in NodeJS
I highly encourage you to clone this application and play around with it, even if you do not know anything about Docker Compose yet. If you can appreciate the fact that these services are running on 5 different containers you already have your motivation to continue reading.
git clone git@github.com:dockersamples/example-voting-app.git
cd example-voting-app/
docker-compose up
#docker-compose #docker #docker-networking #design-systems #dockerfiles