-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
241 lines (223 loc) · 6.89 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
version: '3.3'
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./php/nginx/conf.d/demo.wordpress.local.conf:/etc/nginx/conf.d/demo.wordpress.local.conf
- ./php/nginx/conf.d/demo.wordpress-liveprof.local.conf:/etc/nginx/conf.d/demo.wordpress-liveprof.local.conf
- ./php/nginx/conf.d/demo.liveprof-ui.local.conf:/etc/nginx/conf.d/demo.liveprof-ui.local.conf
- ./bitrix/nginx/conf.d/demo.bitrix.local.conf:/etc/nginx/conf.d/demo.bitrix.local.conf
- ./python/nginx/conf.d/demo.python3.local.conf:/etc/nginx/conf.d/demo.python3.local.conf
- ./nodejs/nginx/conf.d/demo.nodejs.local.conf:/etc/nginx/conf.d/demo.nodejs.local.conf
- ./rbspy/nginx/conf.d/demo.publify.local.conf:/etc/nginx/conf.d/demo.publify.local.conf
- ./netcore/nginx/conf.d/demo.blogifier.local.conf:/etc/nginx/conf.d/demo.blogifier.local.conf
- ./java/nginx/conf.d/demo.hlebushek.local.conf:/etc/nginx/conf.d/demo.hlebushek.local.conf
- ./java/nginx/conf.d/demo.flamescope.local.conf:/etc/nginx/conf.d/demo.flamescope.local.conf
- ./bitrix/www/:/var/www/bitrix/
links:
- wordpress
- wordpress-liveprof
- liveprof-ui
- bitrix
- rbspy
- python
- java
- flamescope
- nodejs
- netcore
wordpress:
image: bloodjazman/wordpress_sampling
build:
context: ./
dockerfile: ./php/wordpress/Dockerfile
environment:
VIRTUAL_HOST: demo.wordpress.local
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
links:
- mysql
volumes:
- ./php/fpm/conf.d/xhprof_sampling.php:/usr/local/etc/php/conf.d/xhprof_sampling.php
- ./php/fpm/conf.d/xhprof_sampling.ini:/usr/local/etc/php/conf.d/xhprof_sampling.ini
- /tmp/:/tmp/
cap_add:
- SYS_PTRACE
wordpress-install:
image: bloodjazman/wordpress_sampling
build:
context: ./
dockerfile: ./php/wordpress/Dockerfile
environment:
VIRTUAL_HOST: demo.wordpress.local
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
- ./php/wordpress/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
links:
- mysql
- wordpress
command: dockerize -timeout 60s -wait tcp://mysql:3306 -wait tcp://wordpress:9000 bash -c "wp core install --url=http://demo.wordpress.local/ --title=flamegraph --admin_user=wordpress --admin_password=wordpress [email protected] --skip-email && echo 'php-fpm'"
wordpress-liveprof:
image: bloodjazman/wordpress_sampling
build:
context: ./
dockerfile: ./php/wordpress/Dockerfile
environment:
VIRTUAL_HOST: demo.wordpress-liveprof.local
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
links:
- mysql
volumes:
- ./php/fpm/conf.d/liveprof_sampling.php:/usr/local/etc/php/conf.d/liveprof_sampling.php
- ./php/fpm/conf.d/liveprof_sampling.ini:/usr/local/etc/php/conf.d/liveprof_sampling.ini
- /tmp/:/tmp/
cap_add:
- SYS_PTRACE
bitrix:
image: bloodjazman/bitrix_sampling
build:
context: ./
dockerfile: ./bitrix/Dockerfile
links:
- mysql
- memcached
volumes:
- ./php/fpm/conf.d/liveprof_sampling.php:/usr/local/etc/php/conf.d/liveprof_sampling.php
- ./php/fpm/conf.d/liveprof_sampling.ini:/usr/local/etc/php/conf.d/liveprof_sampling.ini
- /tmp/:/tmp/
- ./bitrix/www/:/var/www/bitrix/
cap_add:
- SYS_PTRACE
liveprof-ui:
image: bloodjazman/liveprof-ui
build:
context: ./
dockerfile: ./php/liveprof-ui/Dockerfile
environment:
- LIVEPROF_MYSQL_HOST=mysql
- LIVEPROF_MYSQL_PORT=3306
- LIVEPROF_MYSQL_USER=liveprof
- LIVEPROF_MYSQL_PASS=liveprof
- LIVEPROF_MYSQL_DB=liveprof
volumes:
- ./php/liveprof-ui/services.yaml:/app/src/config/services.yaml
- ./php/liveprof-ui/php-errors.ini:/usr/local/etc/php/conf.d/php-errors.ini
links:
- mysql
liveprof-cron:
image: bloodjazman/liveprof-ui
build:
context: ./
dockerfile: ./php/liveprof-ui/Dockerfile
volumes:
- ./php/liveprof-ui/services.yaml:/app/src/config/services.yaml
- ./php/liveprof-ui/crontab:/etc/cron.d/liveprof-ui-cron
command: /bin/dockerize -timeout 60s -wait tcp://liveprof-ui:8000 -wait tcp://mysql:3306 /usr/local/bin/supercronic /etc/cron.d/liveprof-ui-cron
links:
- mysql
- liveprof-ui
python:
image: bloodjazman/python_sampling
build:
context: ./
dockerfile: ./python/Dockerfile
links:
- mysql
volumes:
- /tmp/:/tmp/
cap_add:
- SYS_PTRACE
netcore:
image: bloodjazman/netcore_sampling
build:
context: ./
dockerfile: ./netcore/Dockerfile
volumes:
- /tmp/:/tmp/
cap_add:
- SYS_ADMIN
javascript:
image: bloodjazman/javascript_sampling
build:
context: ./
dockerfile: ./javascript/Dockerfile
volumes:
- ./javascript/bitrix-setup-cpu-profile.js:/opt/automated-chrome-profiling/bitrix-setup-cpu-profile.js
- ./javascript/tests.js:/opt/automated-chrome-profiling/tests.js
- ./javascript/snapshots:/opt/automated-chrome-profiling/snapshots
links:
- nginx
- bitrix
nodejs:
image: bloodjazman/nodejs_sampling
build:
context: ./
dockerfile: ./nodejs/Dockerfile
links:
- mysql
volumes:
- /tmp/:/tmp/
cap_add:
- SYS_PTRACE
- SYS_ADMIN
juno_kv_server:
image: bloodjazman/juno_kv_server
entrypoint: /juno-test/bin/kv_server
ports:
- 6060:6060
- 8379:8379
go-torch:
image: uber/go-torch
links:
- juno_kv_server
volumes:
- /tmp/:/tmp/
entrypoint: '/go/bin/go-torch -u http://juno_kv_server:6060 -f /tmp/go-torch-flamegraph.svg'
rbspy:
image: bloodjazman/ruby_sampling
build:
context: ./
dockerfile: ./rbspy/Dockerfile
volumes:
- /tmp/:/tmp/
cap_add:
- SYS_PTRACE
flamescope:
image: bloodjazman/flamescope
build:
context: /opt/flamescope
dockerfile: /opt/flamescope/Dockerfile
volumes:
- /tmp/:/stacks/
java:
image: bloodjazman/java_sampling
build:
context: ./
dockerfile: ./java/Dockerfile
command: sh -c "cd /opt/hlebushek && MAVEN_OPTS='-XX:+PreserveFramePointer -Xmx512m -Xms10m' mvn jetty:run"
volumes:
- /tmp/:/tmp/
cap_add:
- SYS_PTRACE
memcached:
image: memcached:latest
mysql:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- ./mysql/init:/docker-entrypoint-initdb.d
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"