forked from FiapDevOps/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.08 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
jenkins-docker:
container_name: jenkins-docker
image: docker:dind
ports:
- "3000:3000"
- "5000:5000"
privileged: true
volumes:
- jenkins-docker-certs:/certs/client
- jenkins-data:/var/jenkins_home
- $HOME:/home
restart: always
environment:
DOCKER_TLS_CERTDIR: "/certs"
networks:
jenkins:
aliases:
- docker
jenkins-blueocean:
build:
context: ./jenkins_build
container_name: jenkins-blueocean
ports:
- "80:8080"
- "50000:50000"
volumes:
- jenkins-docker-certs:/certs/client:ro
- jenkins-data:/var/jenkins_home
- $HOME:/home
restart: always
environment:
DOCKER_HOST: tcp://docker:2376
DOCKER_CERT_PATH: /certs/client
DOCKER_TLS_VERIFY: 1
JAVA_OPTS: "-Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true"
networks:
jenkins:
volumes:
jenkins-docker-certs:
name: jenkins-docker-certs
jenkins-data:
name: jenkins-data
networks:
jenkins:
name: jenkins