This guide provides a step-by-step walkthrough of containerizing a simple Flask web application and placing it behind an Nginx reverse proxy using Docker. It also covers orchestrating this multi-container setup with Docker Compose.

Prerequisites

Before starting, ensure you have the following:


1. Prepare Your Python/Flask Environment

We'll start by setting up a local Python environment using pyenv and installing Flask for initial testing.


2. Write & Run a Basic Flask App

Now, we'll create a simple "Hello World" Flask application and test it locally outside of Docker.