Deploy Dockerized Django app on AWS Ec2 with Docker Compose, Redis, Celery, ElasticSearch, PostgreSQL Using Github Actions CI/CD Pipeline
Youtube Video Url: https://youtu.be/BlVR6hzZ6T0
Linkedin Article: https://www.linkedin.com/pulse/automate-your-django-deployment-github-actions-docker-muhammad-rashid-9gfif
This guide walks you through deploying a Dockerized Django backend on an AWS EC2 instance, setting up Nginx for reverse proxy, and automating deployment using GitHub Actions.
- Prepare your Project Locally for Production Ready
- AWS EC2 Instance Creation
- Install Necessary Packages on EC2
- Clone your Project on EC2
- Nginx Setup
- CI/CD Pipeline Setup with GitHub Actions: Automate Deployment
- Conclusion
Commands:
docker compose -f "./build-process/docker-compose-django-backend.yml" up -d --build
sudo docker-compose -f "./build-process/docker-compose-django-backend.yml" up -d --build
This project is licensed under MIT License, granting you the freedom to use, modify, and distribute the code.
Special thanks to codewithmuh for creating this incredible Django Starter Kit and simplifying the development process.