-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
72 lines (67 loc) · 1.81 KB
/
docker-compose.yaml
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
version: '3'
services:
gitlab:
container_name: gitlab
image: gitlab/gitlab-ce:latest
ports:
- "8081:80"
- "24:22" #Default set it to "22:22", changed to test with github actions
- "443:443"
volumes:
- 'gitlab_config:/etc/gitlab'
- 'gitlab_logs:/var/log/gitlab'
- 'gitlab_data:/var/opt/gitlab'
tty: true
jenkins:
container_name: jenkins
image: jenkins/jenkins
privileged: true
ports:
- "8082:8080"
- "5000:5000"
- "25:22" ##Default set it to "22:22", changed to test with github actions
volumes:
- 'jenkins_data:/var/jenkins_home'
- '/var/run/docker.sock:/var/run/docker.sock'
- '/usr/local/bin/docker:/usr/bin/docker' #/usr/local/bin/docker for MacOS and /usr/bin/docker for Ubuntu <- which docker
tty: true
gitlab-runner:
container_name: gitlab-runner
image: gitlab/gitlab-runner
privileged: true
volumes:
- 'gitlab_runner_config:/etc/gitlab-runner'
- '/var/run/docker.sock:/var/run/docker.sock'
- '/usr/local//bin/docker:/usr/bin/docker'
tty: true
sonarqube:
container_name: sonarqube
image: sonarqube
ports:
- "8083:9000"
volumes:
- 'sonarqube_data:/opt/sonarqube'
depends_on:
- postgresql
environment:
- SONARQUBE_JDBC_USERNAME=sonarqube
- SONARQUBE_JDBC_PASSWORD=sonarqube
- SONARQUBE_JDBC_URL=jdbc:postgresql://postgresql:5432/sonarqube
tty: true
postgresql:
container_name: postgresql
image: postgres
volumes:
- 'postgresql_data:/var/lib/postgresql'
environment:
- POSTGRES_USER=sonarqube
- POSTGRES_PASSWORD=sonarqube
tty: true
volumes:
jenkins_data:
gitlab_data:
gitlab_config:
gitlab_logs:
gitlab_runner_config:
sonarqube_data:
postgresql_data: