How aldinkapetanovic/dockerized-flask-app works
This repository provides a small Flask HTTP app plus a Docker Compose setup for running Flask and Nginx. The principal workflow is an HTTP client requesting / or /items from the Flask app and receiving a text or JSON response. The README documents Nginx as a separate service on the shared network, but the sampled files do not show whether its configuration forwards requests to Flask; that connection is therefore omitted.
Main entry points: app.py Flask application · docker-compose.yml Compose services · nginx.conf Nginx service
Components 9
Flask app
- Flask application
app.py - Root route
app.py - Items route
app.py - Hello response
app.py - Items JSON
app.py
Runtime services
- Compose services
docker-compose.yml - Nginx service
nginx.conf - Flask service
docker-compose.yml
Other components
- HTTP client
Connections 7
- HTTP client → Flask application: HTTP requests
- Flask application → Root route: dispatches
- Flask application → Items route: dispatches
- Root route → Hello response: returns text
- Items route → Items JSON: returns JSON
- Compose services → Nginx service: configures service
- Compose services → Flask service: configures service