- use
docker-compose upordocker-compose up -d(to start process running in background). - go to
http://localhost:8080to setup the jenkins admin user and required plugins. (make sure you have copiedinitaladminpasswordfor first login). -
- enable proxy mod using
sudo a2enmod proxy proxy_html rewrite headers proxy_http proxy_connect deflate - restart apache2 using
sudo systemctl restart apache2 - confiure
/etc/hoststo addlocal.jenkins.comas a local-domain. (it can be anything, make sure in conf file servername should be same as your local domain name). - copy
jenkins-docker.confand paste it on your/etc/apache2/sites-available/directory. - create log directory and required files using
sudo mkdir /var/log/apache2/jenkins-docker,sudo touch /var/log/apache2/jenkins-docker/error.logandsudo touch /var/log/apache2/jenkins-docker/access.log. - run
sudo a2ensite ./jenkins-docker.confto enable site on apache2. - check your config using
apachectl -t. - restart your apache server.
- visit your local domain using any browser
http://local.jenkins.com, it must redirect to your running jenkins container on docker. - done.
- enable proxy mod using
-
Notifications
You must be signed in to change notification settings - Fork 0
sushantr134/jenkins-docker
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
simplest solution to get started with jenkins server running on any os using docker engine.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published