jenkins.yml
version: '3'
services:
jenkins:
image: jenkins/jenkins
user: root:root
restart: always
container_name: jenkins
environment:
TZ: "Asia/Kolkata"
volumes:
- /opt/docker/jenkins:/var/jenkins_home
ports:
- 8080:8080
start : docker-compose -f jenkins.yml up -d
stop : docker-compose -f jenkins.yml down
user mapping : https://dev.to/acro5piano/specifying-user-and-group-in-docker-i2e