Our great sponsors
-
django-step-by-step
A Django + Vue reference project that focuses on developer tooling and CI/CD + IaC
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
django-docker-compose
Deploying a Django project in production with Docker Compose, Gunicorn and Nginx.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Here's one of my practice projects that I use for learning and practicing deployments. It is a simple microblogging application that implements the application both using the MTV paradigm and the REST/SPA paradigm. My deployment efforts are narrowly focused on ECS Fargate, one of several ways to run containers on AWS, and I also focus on using Terraform and GitHub Actions to both build infrastructure and deploy new versions of the application. terraform-aws-django is repo that contains all of the Terraform code that is used to build the application. Happy to answer any questions about these repos!
Here's one of my practice projects that I use for learning and practicing deployments. It is a simple microblogging application that implements the application both using the MTV paradigm and the REST/SPA paradigm. My deployment efforts are narrowly focused on ECS Fargate, one of several ways to run containers on AWS, and I also focus on using Terraform and GitHub Actions to both build infrastructure and deploy new versions of the application. terraform-aws-django is repo that contains all of the Terraform code that is used to build the application. Happy to answer any questions about these repos!
Nick Janetakis's post Best Practices Around Production Ready Web Apps with Docker Compose has great tips, and he also has a Django-specific example project that's frequently updated, which is brilliant to learn from.
I have a tutorial at https://github.com/jbarham/django-docker-heroku-tutorial which shows how to run Django in Docker Compose with PostgreSQL, Redis and Django-RQ (for running background jobs). It also has the necessary config files to deploy to Heroku.
Related posts
- What is your development cycle when using docker and containers? What's the general flow between developing locally and running the containers to test.
- What's the correct way to install or version up packages when using Docker and Poetry?
- Docker advantages for a single developer?
- Django 4.2 released
- psycopg2 in production