Deploy Jenkins using docker-compose

SebinnSebastian
1 min readJul 13, 2022

--

Install docker and docker-compose,follow the official documentation

Create a directory to store docker-compose file and jenkins data

mkdir jenkins

mkdir -p jenkins/jenkins-data

mkdir -p jenkins/docker.sock

Create the docker-compose file

vi docker-compose.yaml

Attaching the link of docker-compose file,Since the indentations are important

get into the directory where docker-compose file resides,then

docker-compose up

press ctrl+z

Copy the secret generated

Open the browser enter url: localhost:8083

Paste the copied secret.Install suggested plugins.Set up the username and password.

If you want to integrate with nodejs, sonarqube or any thing else please install the plugin from manage plugins

Jenkins installation finished

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

SebinnSebastian
SebinnSebastian

Written by SebinnSebastian

DevOps Engineer | Redhat Certified System Administrator | K8s Administrator | AWS, Docker, Terraform, GCP

No responses yet