Docker Project-1 for DevOps Engineers.

Deployed Django-todo-cicd using docker and docker volume

Steps to complete this project:-

  1. Create an EC2 instance and install the docker.

  2. Clone your repository.

  3. Create a Dockerfile.

  4. Run the Dockerfile to create an image, and then create a container from the image.

  5. Create the container and map it to port 8000:8000.

  6. Create a new directory for creating a docker volume.

  7. Enable port 8000 on EC2 instance -> security group.

  8. Put the instance IP address into the browser to check whether we can see our application.

Step 1:- Create an EC2 instance and install the docker.

Step 2:- Clone your repository.

Step 3:- Create a Dockerfile.

Step 4:- Run the Dockerfile to create an image, and then create a container from the image.

Project docker image created.

Step 5:- Create the container and map it to port 8000:8000.

Step 6:- Create a new directory for creating a docker volume.

If you want to see the details of the docker volume

Now we can attach the docker volume with the container.

We can see all projects file are in the container

we made some changes in the container folder so we can create one text file.

Once the file is created it will be reflected on the local repo also where our volume is located.

Step 7:- Enable port 8000 on EC2 instance -> security group.

Step 8:- Put the instance IP address into the browser to check whether we can see our application.

Hope you like this Project. Please follow for more Projects related to DevOps.

Thank you.