-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (73 loc) · 2.28 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3"
services:
jenkins:
build:
context: ./src/main/resources/jenkins
dockerfile: Dockerfile
container_name: jenkins
hostname: 'jenkins'
networks:
- ci
ports:
- "8080:8080"
- '50000:50000'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '$JENKINS_HOME:/var/jenkins_home'
gitlab:
image: gitlab/gitlab-ce:13.8.1-ce.0
container_name: gitlab
hostname: 'gitlab'
networks:
- ci
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost:8000'
gitlab_rails['gitlab_shell_ssh_port'] = 8022
ports:
- "8000:8000"
- "8022:22"
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
sonarqube:
image: sonarqube:8.5.1-community
container_name: sonarqube
hostname: 'sonarqube'
networks:
- ci
- sonarnet
environment:
- sonar.jdbc.username=sonar
- sonar.jdbc.password=sonar
- sonar.jdbc.url=jdbc:postgresql://postgresdb:5432/sonarqube
ports:
- "9000:9000"
- "9092:9092"
volumes:
- '$SONAR_HOME/logs:/opt/sonarqube/logs'
- '$SONAR_HOME/data:/opt/sonarqube/data'
- '$SONAR_HOME/extensions:/opt/sonarqube/extensions'
- '$SONAR_HOME/bundled-plugins:/opt/sonarqube/lib/bundled-plugins'
- '$SONAR_HOME/sonarqube-community-branch-plugin-1.6.0.jar:/opt/sonarqube/extensions/plugins/sonarqube-community-branch-plugin.jar'
- '$SONAR_HOME/sonarqube-community-branch-plugin-1.6.0.jar:/opt/sonarqube/lib/common/sonarqube-community-branch-plugin.jar'
postgresdb:
image: postgres:12.1
container_name: postgres
hostname: 'postgresdb'
networks:
- ci
- sonarnet
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
- POSTGRES_DB=sonarqube
volumes:
- '$POSTGRESQL_HOME/sonarqube_db:/var/lib/postgresql'
- '$POSTGRESQL_HOME/postgresql_data:/var/lib/postgresql/data'
networks:
ci:
driver: bridge
sonarnet:
driver: bridge