Skip to content

AdamAbbas23/docker-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Assignment

Objective

Create a multi-container application that consists of a simple Python Flask web application and a Redis database. The Flask application should use Redis to store and retrieve data.

Requirements

Flask Web Application:

A Flask app that has two routes: /: Displays a welcome message. /count: Increments and displays a visit count stored in Redis. Redis Database:

Use Redis as a key-value store to keep track of the visit count. Dockerize Both Services:

Create Dockerfiles for both the Flask app and Redis. Use Docker Compose to manage the multi-container application. Test the Application Access the Welcome Page:

Open your browser and go to http://localhost:5000 to see the welcome message. Test the Visit Count:

Navigate to http://localhost:5000/count to see the visit count increment each time you refresh the

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages