A lightweight, containerized Flask application that tracks page visits using Redis.
Built with production-style Docker best practices and ready for DevOps workflows.
- 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 (
redishostname) - Clear structure for CI/CD pipelines
- Clone the repo
git clone https://github.com/younesmod/docker-flask-redis-counter.git
cd docker-flask-redis-counter- Start the services
docker compose up --build -d- Access the site
docker-compose down -v