How manyuki/flask-docker-stack works
This repository is a small, locally containerized Flask API stack. The main request flow serves the root response and exposes metrics; the app also establishes PostgreSQL and Redis connections, though the shown source does not use them for API operations. The README documents Prometheus scraping and Grafana visualization. PostgreSQL, Redis, and Grafana wiring is described but not visible in sampled configuration, so those links rely on README evidence.
Main entry points: docker-compose.yml Compose stack · app.py Flask API · prometheus.yml Prometheus
Components 8
API
- Flask API
app.py - Metrics endpoint
app.py
Data services
- PostgreSQL
docker-compose.yml - Redis cache
docker-compose.yml
Observability
- Prometheus
prometheus.yml - Grafana
docker-compose.yml
Deployment
- Compose stack
docker-compose.yml
Other components
- Browser
Connections 11
- Browser → Flask API: requests
README.md - Flask API → Metrics endpoint: routes to
app.py - Flask API → PostgreSQL: connects to
app.py - Flask API → Redis cache: connects to
app.py - Prometheus → Metrics endpoint: scrapes
README.md - Grafana → Prometheus: visualizes
README.md - Compose stack → Flask API: runs
README.md - Compose stack → PostgreSQL: runs
README.md - Compose stack → Redis cache: runs
README.md - Compose stack → Prometheus: runs
README.md - Compose stack → Grafana: runs
README.md