Skip to content

djangorobert/django_docker_aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django_Docker_AWS

Technologies used:

1.)Django Web Framework 2.)Docker Container 3.)Nginx 4.)Gunicorn 5.)AWS EC2, ECR, Elastic IP, 6.)Github

This Project was built to Connect a Django Python Web App with Docker and added to AWS Amazon Web Services. The Project was first built on a local machine(PC) then once finished it was added to Github so that it could then be accessed by AWS EC2 Instance(VM) Virtual machine. I then used SSH to log in from my local computer (PC) to the EC2 Instance(VM) to then first download Docker to that PC and all the dependencies. After that I then used Git clone in the linux command line to download the local project that was added to Github. With the project now cloned in the EC2 instance I was able to run my docker commands, docker-compose build, docker images, then went to AWS Elastic Container Registry to get authentication token for repo to be able to push or pull with that done I was able to docker-compose push.

After those commands in AWS ECR Elastic Contiainer Registry confirmed that the docker images were now there available in AWS. Now I was able to enter a final command docker-compose up -d. Then was able to verify if my Hello Django App was live.

One thing to remember this is for Education purposes always hide your security key in django with packages like django-environ and put Debug=False. Take Care.

Alt text Alt text Alt text

About

Django App with Docker Container added to AWS EC2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published