Docker-compose file for jenkinsci using "letsencrypt-nginx-proxy" to serve it (on port 80) at a subdomain of your choice
Clone this repo
git clone git@github.com:asimzeeshan/docker-jenkinsci.git
cd docker-jenkinsci
cp .env.example .env
Change the details in .env
especially making sure the hostname you specify is a valid domain name with a valid DNS entry. Also make sure to change webproxy
to your network created in letsencrypt-nginx-proxy-companion
docker-compose up -d
To view the password, either enter the container to view this file /var/jenkins_home/secrets/initialAdminPassword
OR do docker-compose logs -f
and you'll see something like this
jenkinsci | *************************************************************
jenkinsci | *************************************************************
jenkinsci | *************************************************************
jenkinsci |
jenkinsci | Jenkins initial setup is required. An admin user has been created and a password generated.
jenkinsci | Please use the following password to proceed to installation:
jenkinsci |
jenkinsci | 3c891302e27547ca97714105f688e511
jenkinsci |
jenkinsci | This may also be found at: /var/jenkins_home/secrets/initialAdminPassword
jenkinsci |
jenkinsci | *************************************************************
jenkinsci | *************************************************************
jenkinsci | *************************************************************
Access your new docker container at the URL you specified in .env
file (make sure you have the DNS entry already added).
- docker & docker-compose already installed on the system
- git package already installed
- letsencrypt-nginx-proxy-companion