Here is my YML File Content …
version: ‘2’
services:
jenkins:
image: bitnami/jenkins:latest
command:
- /bin/bash
- -c
- |
echo “Installing Docker Binary”
apt-get update -qq && apt-get install -qqy apt-transport-https ca-certificates curl gnupg2 software-properties-common
echo “Installing Docker Binary step 1”
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
echo “Installing Docker Binary step 2”
add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/debian $$(lsb_release -cs) stable”
echo “Installing Docker Binary step 3”
apt-get update -qq && apt-get install docker-ce -y
echo “Done With Installation”
ports:
- ‘8085:8080’
- ‘8086:8086’
volumes:
- /home/aspire43/Project/jhipster/jenkins/data:/bitnami
- /var/run/docker.sock:/var/run/docker.sock
environment:
- JENKINS_USERNAME=admin
- JENKINS_PASSWORD=admin