Over to You!
Your friend John is a developer at an IT school. He’s just finished his first Python project: an API for registering students in a Redis database.
Before going any further with his code, he asks you whether it’s possible to use Docker to show his application to his colleagues from any computer, as his colleagues don’t all work with the same operating system.
John has shared his project folder with you, which contains all of his code.
He recommends you read the README file first to understand the prerequisites for his code to work correctly:
Python 3.8 or later
A Redis database
You divide your work into two parts:
Creating an image of the code with a Dockerfile
Running the code using a Redis database with a docker-compose file
You’ll deliver a Dockerfile and a docker-compose to John so that he can present the API to his colleagues.
Once John’s project is up and running, you can visit the API by typing localhost:5000
into your browser.