Last active
June 21, 2021 09:50
-
-
Save anandtripathi5/592fc771f7012c086f505e9b4bd6fbf6 to your computer and use it in GitHub Desktop.
docker-compose.yml file of Jenkins server. Proxy plugin configuration will work with the below configuration of docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| services: | |
| jenkins: | |
| image: jenkins/jenkins:lts | |
| container_name: jenkins | |
| hostname: jenkins | |
| environment: | |
| - HTTP_PROXY=http://localhost:8080 | |
| - http_proxy=http://localhost:8080 | |
| - HTTPS_PROXY=http://localhost:8080 | |
| - https_proxy=http://localhost:8080 | |
| - JAVA_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8080 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=8080" | |
| - JENKINS_OPTS=--httpPort=7000 | |
| ports: | |
| - 7000:7000 | |
| - 8080:8080 | |
| volumes: | |
| - ./data:/var/jenkins_home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment