-
Notifications
You must be signed in to change notification settings - Fork 15
/
local-compose.yml
77 lines (71 loc) · 1.68 KB
/
local-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
# Local testing version of ELK stack designed for container-native
# deployment on Joyent's Triton platform.
kibana:
extends:
file: docker-compose.yml
service: kibana
mem_limit: 128m
build: kibana/
environment:
- CONSUL=consul
links:
- consul:consul
logstash:
extends:
file: docker-compose.yml
service: logstash
mem_limit: 512m
build: logstash/
environment:
- CONSUL=consul
links:
- consul:consul
ports:
- "514:514" # syslog tcp port
- "514/udp:514/udp" # syslog udp port
- "12201/udp:12201/udp" # gelf udp port
# - "24224:24224" # fluentd tcp port
elasticsearch_master:
extends:
file: docker-compose.yml
service: elasticsearch
image: es_elasticsearch
mem_limit: 512m
environment:
- CONSUL=consul
- ES_SERVICE_NAME=elasticsearch-master
- ES_NODE_MASTER=true
- ES_NODE_DATA=false
- CONTAINERBUDDY=file:///etc/containerbuddy.json
links:
- consul:consul
elasticsearch:
extends:
file: docker-compose.yml
service: elasticsearch
image: es_elasticsearch
mem_limit: 512m
environment:
- CONSUL=consul
- ES_SERVICE_NAME=elasticsearch-master
links:
- consul:consul
elasticsearch_data:
extends:
file: docker-compose.yml
service: elasticsearch
image: es_elasticsearch
mem_limit: 512m
environment:
- CONSUL=consul
- ES_SERVICE_NAME=elasticsearch-data
- ES_NODE_MASTER=false
- ES_NODE_DATA=true
links:
- consul:consul
consul:
extends:
file: docker-compose.yml
service: consul
ports:
- 8500:8500