← Back to context

Comment by andes314

2 days ago

[Excerpt from Article]

This is a small project that packages a Flask app in Docker and deploys it using Docker Compose. It runs a server that returns `"crouton!"`, the current time, and a visitor count that persists across restarts.

* The codebase: https://github.com/rodlaf/crouton * You can try it here: https://crouton.rlafuente.com * The idea was originally inspired by https://crouton.net

The app itself is trivial. But what you get, by building and deploying it properly, is a full walkthrough of how web services actually make their way from a script on your laptop to something versioned, persistent, and runnable everywhere.

It touches on containerization, orchestration, logging, port forwarding, file persistence, and shipping artifacts to Docker Hub. All in about 30 lines of Python.