How kartikey1603/containerized-web-app works
This is a small Flask web app demonstrating a containerized app-to-MySQL workflow. A browser request reaches the / route, which retries database connection setup, creates the page-views table if needed, inserts a row, counts rows, and returns JSON. Docker Compose is documented as starting the app and database on a private network with persistent storage. The Compose file was not sampled, so its internal configuration details are not represented.
Main entry points: app.py Home route · docker-compose.yml Compose environment
Components 5
Web application
- Home route
app.py - Connection retries
app.py
Database service
- MySQL
Container runtime
- Compose environment
docker-compose.yml
Other components
- Browser
Connections 7
- Browser → Home route: requests
- Home route → Connection retries: opens connection
- Connection retries → MySQL: connects
- Home route → MySQL: creates, writes, counts
- Home route → Browser: returns JSON
- Compose environment → Home route: starts app
- Compose environment → MySQL: starts database