-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
123 lines (119 loc) · 3.31 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: '2.1'
services:
db:
image: mariadb:5.5
container_name: mysql
restart: on-failure:2
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /etc/mysql:/etc/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=gerrit
- MYSQL_PASSWORD=GERRIT_PASS
- MYSQL_DATABASE=reviewdb
#env_file:
# - /etc/mysql/mysql_docker.env
ports:
- 3306:3306
ldap:
image: dinkel/openldap:latest
container_name: openldap
restart: on-failure:2
volumes:
- /etc/ldap:/etc/ldap
- /var/lib/ldap:/var/lib/ldap
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- SLAPD_PASSWORD=password
- SLAPD_CONFIG_PASSWORD=password
#env_file:
# - /etc/openldap/openldap_docker.env
ports:
- 389:389
- 636:636
ldap-admin:
image: osixia/phpldapadmin
container_name: ldap_phpldapadmin
ports:
- 6443:443
links:
- ldap:ldap
depends_on:
- ldap
environment:
- PHPLDAPADMIN_LDAP_HOSTS=ldap
gerrit:
build: ./gerrit/alpine
image: gerrit:latest
container_name: gerrit
restart: on-failure:2
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /etc/gerrit:/var/gerrit/review_site
- /root/.ssh/:/root/.ssh/
environment:
- DATABASE_TYPE=mysql
- DATABASE_HOSTNAME=db
- DATABASE_DATABASE=reviewdb
- DATABASE_USERNAME=gerrit
- DATABASE_PASSWORD=GERRIT_PASS
external_links:
- db:mysql
- ldap:openldap
depends_on:
- db
- ldap
ports:
- 443:443
- 29418:29418
influxdb_volume:
image: busybox
volumes:
- /opt/influxdb/data:/data
influxdb:
image: influxdb/influxdb
container_name: influxdb
restart: on-failure:2
ports:
- 8083:8083
- 8086:8086
expose:
- 8090
- 8099
depends_on:
- influxdb_volume
volumes_from:
- influxdb_volume
cadvisor:
image: google/cadvisor:latest
container_name: cadvisor
restart: always
command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=influxsrv:8086
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
links:
- influxdb:influxdb
ports:
- 8080:8080
grafana:
image: grafana/grafana:2.6.0
restart: always
links:
- influxdb:influxdb
ports:
- "3000:3000"
environment:
- HTTP_USER=admin
- HTTP_PASS=admin
- INFLUXDB_HOST=influxdb
- INFLUXDB_PORT=8086
- INFLUXDB_NAME=cadvisor
- INFLUXDB_USER=root
- INFLUXDB_PASS=root