Skip to content

Instantly share code, notes, and snippets.

@anandtripathi5
Last active June 21, 2021 09:50
Show Gist options
  • Save anandtripathi5/592fc771f7012c086f505e9b4bd6fbf6 to your computer and use it in GitHub Desktop.
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
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