Best Practices for Compose-managed Python Apps
summary
Shows how to containerize a Flask+MySQL+Nginx dev stack with Dockerfiles and Docker Compose, demonstrates ordering COPY/RUN to leverage build cache, and uses mount source to /src so code changes reload without rebuilding images. Covers Compose patterns: separate networks for isolation, use Docker secrets for passwords, and named volumes for DB persistence. Demonstrates remote debugging with ptvsd, mapped debugger port and VS Code remote-attach, and the compose up/down + build workflow used to apply dependency or config changes.
AI-written summary · about
chapters (7)
- 0:00Compose-managed Python apps
- 3:03Bootstrapping Python with containers
- 8:45Optimizing Dockerfiles
- 13:43Network isolation best practices
- 15:10Faster development loop
- 20:51Live demo updates & debugging
- 29:19Summary
related talks
34mModern development environments for Pythonistas
30mHow to Create a Great Local Python Development Environment with Docker
34mDockerizing Django
02h 28mWorkshop: Learn How to Dockerize Your Python Application
23mCleaning Up Your Python Environment Superfund Site
30mUsing Python, Flask and Docker To Teach Web Pentesting
02h 25mModern Python Developer's Toolkit
26mHow to containerize Python applications with Docker
