services: jenkins: container_name: my_jenkins_01 build: context: . dockerfile: dockerfile.jenkins ports: - "60199:8080" - "5000:5000" volumes: - "jenkins:/var/jenkins_home" - "/var/run/docker.sock:/var/run/docker.sock" group_add: - "999" restart: unless-stopped volumes: jenkins: