Table of contents
- Project Details
- Objective
- Deploying django-todo-cicd app and Jenkins server using docker-compose
- Steps to Complete the Project.
- 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
- 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
- THAT'S ALL FOR TODAY'S LEARNING
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.
Launch an ec2 instance and install docker into it
Clone your repository.
Create a docker-compose.yml file and write the code.
Run the docker-compose.yml.
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