Python samples

Note

Samples compatible with Docker Dev Environments require Docker Desktop version 4.10 or later.

NameDescriptionDocker Dev Environment (if compatible)
NGINX / Flask / MongoDBA sample Python/Flask application with Nginx proxy and a Mongo database.Open in Docker Dev Environment
NGINX / Flask / MySQLA sample Python/Flask application with an Nginx proxy and a MySQL database.
NGINX / WSGI / FlaskA sample Nginx reverse proxy with a Flask backend using WSGI.
Python / Flask / RedisA sample Python/Flask and a Redis database.Open in Docker Dev Environment
FlaskA sample Flask application.Open in Docker Dev Environment
DjangoA sample Django application.Open in Docker Dev Environment
FastAPIA sample FastAPI application.Open in Docker Dev Environment
example-voting-appA sample Docker Compose app.
Compose and DjangoThis quick-start guide demonstrates how to use Docker Compose to set up and run a simple Django/PostgreSQL app.
AI/ML with DockerGet started with AI and ML using Docker, Neo4j, LangChain, and Ollama

Looking for more samples?

Visit the following GitHub repositories for more Docker samples.

  • Awesome Compose: A curated repository containing over 30 Docker Compose samples. These samples offer a starting point for how to integrate different services using a Compose file.

  • Docker Samples: A collection of over 30 repositories that offer sample containerized demo applications, tutorials, and labs.