-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (69 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
69 lines (69 loc) · 1.44 KB
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
version: '3.4'
services:
mysql:
image: ivinco/test_task_mysql_hn:1
ports:
- "3307:3306"
container_name: "ivinco_test_mysql"
php:
build:
context: .
dockerfile: Dockerfile_php
container_name: "ivinco_test_php"
depends_on:
- "mysql"
command: [ "/tmp/wait-for", "mysql:3306", "-t", "1000", "--", "php", "/tmp/test.php" ]
sphinxsearch:
container_name: sphinxsearch
depends_on:
- "mysql"
ports:
- 9312:9312
- 9306:9306
image: stefobark/sphinxdocker
links:
- mysql
volumes:
- ./sphinxsearch:/etc/sphinxsearch
- log:/var/log/sphinx
- data:/var/lib/sphinx
- idx:/var/idx/sphinx
command: >
bash -c "./indexandsearch.sh"
webserver:
build: ./php
ports:
- '82:80'
volumes:
- ./html/:/var/www/html
depends_on:
- sphinxsearch
links:
- sphinxsearch
nagios:
###Add mysql-client to quick check. Probably we could use NRPE too
build:
context: .
dockerfile: Dockerfile_nagios
container_name: nagios
volumes:
###Make configs persistent and add custom scripts
- etc:/opt/nagios/etc
- var:/opt/nagios/var
- ./plugins:/opt/Custom-Nagios-Plugins
- ./cfg:/opt/nagios/etc/conf.d/
ports:
- 81:80
links:
###Link to mysql to access image directly
- mysql
volumes:
etc:
var:
plugins:
cfg:
sphinxsearch:
log:
data:
html:
idx: