-
Notifications
You must be signed in to change notification settings - Fork 1
/
jenkins-compose.yml
51 lines (46 loc) · 933 Bytes
/
jenkins-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: "1.0"
services:
# gitlab service
gitlab:
container_name: gitlab-repo
image: gitlab/gitlab-ee:latest
ports:
- "443:443"
- "80:80"
- "22:22"
volumes:
- gitlab-config:/etc/gitlab
- gitlab-logs:/var/log/gitlab
- gitlab-data:/var/opt/gitlab
shm_size: "256m"
networks:
- devops
# jenkins service
jenkins-blueocean:
container_name: jenkins-blueocean
build:
dockerfile: customJenkins.Dockerfile
ports:
- "8080:8080"
- "50000:50000"
networks:
- devops
volumes:
- jenkins-data:/var/jenkins_home
# sonarQube service
sonarQube:
image: sonarqube
container_name: sonarQube
environment:
- SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true
ports:
- "9000:9000"
networks:
- devops
volumes:
gitlab-config:
gitlab-logs:
gitlab-data:
jenkins-data:
networks:
devops: {}