-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 980 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 980 Bytes
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
version: '3'
services:
gitlab:
image: gitlab/gitlab-ce:11.9.1-ce.0
container_name: gitlab
volumes:
- ./vol_gitlab/config:/etc/gitlab
- ./vol_gitlab/logs:/var/log/gitlab
- ./vol_gitlab/data:/var/opt/gitlab
ports:
- "1080:80"
- "10443:443"
- "1022:22"
hostname: gitlab.devops.io
networks:
- network_devops
jenkins:
build: .
container_name: jenkins
user: jenkins
hostname: jenkins.devops
volumes:
- ./vol_jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
environment:
JENKINS_HOST_HOME: "./vol_jenkins"
ports:
- "4080:8080"
- "51000:50000"
- "5100:5000"
networks:
- network_devops
sonarqube:
image: sonarqube:lts
container_name: sonarqube
ports:
- "9100:9000"
- "9092:9092"
networks:
- network_devops
networks:
network_devops:
external:
name: "network_devops"