Based on offical jenkins image, with ansible & docker support.
version: '3'
services:
jenkins:
image: sparkpos/jenkins
container_name: jenkins
environment:
- JAVA_OPTS="-Djava.awt.headless=true"
ports:
- "50000:50000"
- "8080:8080"
restart: always
#mem_limit: 2G
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /app/jenkins/data:/var/jenkins_home