Deploy Jenkins using docker-compose
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