Docker Project-3  for DevOps Engineers

Docker Project-3 for DevOps Engineers

Project Details

Objective

Deploying django-todo-cicd app and Jenkins server using docker-compose

What is Docker-compose

Docker Compose is a tool that allows you to define and run multi-container Docker applications. It uses a YAML file to specify the services that make up your application, their configuration options, and how they are connected.

Steps to Complete the Project.

  1. Launch an ec2 instance and install docker into it

  2. Clone your repository.

  3. Create a docker-compose.yml file and write the code.

  4. Run the docker-compose.yml.

  5. Paste the instance IP address with the port number into the browser to check whether we can see our application.

Step:1 Launch an EC2 instance and install Docker into it.

Step:2 Clone your repository.

Step:3 Create a docker-compose.yml file and write the code


version : "3.3"
services :
  django_todo_app :
    container_name: "django-app"
    build : .
    ports:
      - 8000:8000
  jenkins_server :
    container_name: "jenkins-server"
    image : jenkins/jenkins
    ports:
      - 8080:8080

Step:4 Run the docker-compose.yml

Step:5 Paste the instance IP address with the port number into the browser to check whether we can see our application

Here our task is finished

THAT'S ALL FOR TODAY'S LEARNING

I HOPE YOU LEARN SOMETHING FROM THIS BLOG