-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 1.78 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
version: '3.6'
services:
telegraf:
image: telegraf:1.18-alpine
volumes:
- ./telegraf/etc/telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- influxdb
- jenkins
- sonarqube
- gitlab
links:
- sonarqube
- jenkins
- influxdb
ports:
- '127.0.0.1:8125:8125/udp'
influxdb:
image: influxdb:1.8-alpine
env_file: configuration.env
ports:
- '127.0.0.1:8086:8086'
volumes:
- ./:/imports
- influxdb_data:/var/lib/influxdb
grafana:
image: grafana/grafana:8.0.2
depends_on:
- influxdb
env_file: configuration.env
links:
- influxdb
ports:
- '127.0.0.1:3000:3000'
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/dashboards/:/var/lib/grafana/dashboards/
jenkins:
image: jenkins/jenkins:lts
privileged: true
user: root
ports:
- 127.0.0.1:8080:8080
- 127.0.0.1:50000:50000
container_name: jenkins
volumes:
- ./../jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
sonarqube:
image: sonarqube:7.9.2-community
ports:
- 127.0.0.1:9000:9000
gitlab:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'gitlab.app.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.app.com:8929'
gitlab_rails['initial_root_password'] = 'adminadmin'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
ports:
- '127.0.0.1:8929:8929'
- '2224:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'
volumes:
grafana_data: {}
influxdb_data: {}