-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
99 lines (95 loc) · 2.63 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3"
services:
nginx:
image: nginx:latest
restart: always
ports:
- "8089:8089"
volumes:
- /home/dharma/tmp/etc/nginx:/etc/nginx/conf.d
networks:
- gitlabnetwork
gitlab:
container_name: gitlab-srv
image: gitlab/gitlab-ee:latest
restart: always
hostname: gitlab.example.com
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.example.com'
registry_external_url 'http://gitlab.example.com:5050'
registry['enable'] = true
gitlab_rails['gitlab_shell_ssh_port'] = 2224
# Add any other gitlab.rb configuration here, each on its own line
ports:
# - '8081:80'
#- '443:443'
- '2224:22'
- '5050:5050'
volumes:
- ./data-store/config:/etc/gitlab
- ./data-store/logs:/var/log/gitlab
- ./data-store/data:/var/opt/gitlab
networks:
- gitlabnetwork
gitlab-runner:
container_name: gitlab-run
restart: always
image: gitlab/gitlab-runner:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "$HOME/.docker:/root/.docker/"
- ./data-store/gitlab-runner-volume/config:/etc/gitlab-runner
networks:
- gitlabnetwork
sonarqube:
image: sonarqube:8.2-community
depends_on:
- db
ports:
- "9000:9000"
networks:
- sonarnet
environment:
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
volumes:
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
- sonarqube_temp:/opt/sonarqube/temp
db:
image: postgres
networks:
- sonarnet
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
volumes:
- postgresql:/var/lib/postgresql
# This needs explicit mapping due to https://github.com/docker-library/postgres/blob/4e48e3228a30763913ece952c611e5e9b95c8759/Dockerfile.template#L52
- postgresql_data:/var/lib/postgresql/data
artifactory:
image: docker.bintray.io/jfrog/artifactory-pro:latest
container_name: artifactory
ports:
- 8081:8081
- 8082:8082
volumes:
- /data/artifactory3:/var/opt/jfrog/artifactory
restart: always
#networks:
# - gitlabnetwork
networks:
sonarnet:
driver: bridge
gitlabnetwork:
driver: bridge
volumes:
sonarqube_data:
sonarqube_extensions:
sonarqube_logs:
sonarqube_temp:
postgresql:
postgresql_data: