first commit - working on the reverse proxy

This commit is contained in:
2023-01-21 19:33:14 +00:00
commit 22e6a432ad
7 changed files with 276 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
# docker-compose.yaml
version: '3.8'
networks:
jenkins:
volumes:
jenkins_home:
driver_opts:
type: nfs
o: addr=maurice,nfsvers=4
device: :/swarm/jenkins/home
jenkins_certs:
driver_opts:
type: nfs
o: addr=maurice,nfsvers=4
device: :/swarm/jenkins/certs
services:
jenkins-docker:
image: docker:dind
networks:
jenkins:
aliases:
- docker
user: root
environment:
- DOCKER_TLS_CERTDIR=/certs
volumes:
- jenkins_home:/var/jenkins_home
- jenkins_certs:/certs/client
ports:
- 2376:2376
privileged: true
command: --storage-driver=overlay2
jenkins-blueocean:
image: jenkins/jenkins:2.375.2
networks:
- jenkins
ports:
- 8080:8080
- 50000:50000
environment:
- DOCKER_HOST=tcp://docker:2376
- DOCKER_CERT_PATH=/certs/client
- DOCKER_TLS_VERIFY=1
volumes:
- jenkins_home:/var/jenkins_home
- jenkins_certs:/certs/client
- /var/run/docker.sock:/var/run/docker.sock