-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (74 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (74 loc) · 1.62 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
70
71
72
73
74
75
version: '2'
services:
lb:
image: haproxy:1.7
links:
- dog
- cat
- mouse
- kibana
volumes:
- ./haproxy/:/usr/local/etc/haproxy/
ports:
- "8080:8080"
- "8081:8081"
entrypoint: "/usr/local/sbin/haproxy -f /usr/local/etc/haproxy/haproxy.cfg -d -V"
dog:
build: ./web
environment:
- APPSERVER=dog
expose:
- "8080"
logging:
driver: fluentd
options:
fluentd-address: "localhost:24224"
fluentd-async-connect: "true"
#https://docs.docker.com/engine/admin/logging/overview/#fluentd
cat:
build: ./web
environment:
- APPSERVER=cat
expose:
- "8080"
logging:
driver: fluentd
options:
fluentd-address: "localhost:24224"
fluentd-async-connect: "true"
#https://docs.docker.com/engine/admin/logging/overview/#fluentd
mouse:
build: ./web
environment:
- APPSERVER=mouse
expose:
- "8080"
logging:
driver: fluentd
options:
fluentd-address: "localhost:24224"
fluentd-async-connect: "true"
#https://docs.docker.com/engine/admin/logging/overview/#fluentd
fluentd:
build: ./fluentd
environment:
- "FLUENTD_CONF=shipper.cfg"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /sys/fs/:/sys/fs/
ports:
- "24220:24220"
- "24224:24224"
links:
- elasticsearch
elasticsearch:
image: elasticsearch:6.4.1
ports:
- "9200:9200"
- "9300:9300"
kibana:
image: kibana:6.4.1
ports:
- "5601:5601"
links:
- elasticsearch