Skip to content

A minimal production-style stack that shows You understand Containers, Service Communication, Caching, and Multi-service orchestration.

License

Notifications You must be signed in to change notification settings

younesmod/docker-flask-redis-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image MIT Scan Docker Image Build and Push Docker Images

🐳 Flask + Redis Counter (Docker Compose)

A lightweight, containerized Flask application that tracks page visits using Redis.
Built with production-style Docker best practices and ready for DevOps workflows.

🚀 Features

  • Flask web service with Redis as a backend cache
  • Docker Compose multi-service setup
  • Best-practice Dockerfile using:
    • Multi-stage builds
    • Non-root user
    • Minimal slim image
    • Layer-optimized caching
  • Persistent Redis volume
  • Internal DNS service discovery (redis hostname)
  • Clear structure for CI/CD pipelines

🧩 Docker Compose Setup

  1. Clone the repo
git clone https://github.com/younesmod/docker-flask-redis-counter.git
cd docker-flask-redis-counter
  1. Start the services
docker compose up --build -d
  1. Access the site

🧹 Cleanup

docker-compose down -v

About

A minimal production-style stack that shows You understand Containers, Service Communication, Caching, and Multi-service orchestration.

Topics

Resources

License

Stars

Watchers

Forks

Packages