This Ansible manifest will install Docker, Docker compose and configure a Systemd service to start Jenkins on a EL7 server.
CentOS7
edit jenkins.yml to point to the host you're installing on and then run:
ansible-playbook -vvv jenkins.yml
Is Dockerfile for the Docker image used.