forked from txn2/query
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
154 lines (145 loc) · 3.97 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
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.2
container_name: elasticsearch
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- transport.host=127.0.0.1
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.host=0.0.0.0
- http.port=9200
- "http.cors.allow-origin=http://localhost:1358"
- "http.cors.enabled=true"
- "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
- "http.cors.allow-credentials=true"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
networks:
- esnet
# Provision creates account, user and asset documents in Elasticsearch
# see: https://github.com/txn2/provision
provision:
image: txn2/provision:v0.1.4
container_name: provision
environment:
- SYSTEM_PREFIX=system_
- ELASTIC_SERVER=http://elasticsearch:9200
- DEBUG=false
- IP=0.0.0.0
- PORT=8070
- TOKEN_EXP=1440
- TOKEN_KEY=somesharedkey
- AGENT=DockerCompose
- SERVICE_ENV=local
ports:
- "8070:8070"
networks:
- esnet
depends_on:
- elasticsearch
# see ./dev_config/lostash.conf for the current logstash pipline
# configuration. Logstash is configured with a beat listener on port 5044
# rtBeat will connect and send it's batches of messages through port 5044
# Logstash will parse messages from rtBeat and send them to an appropriate
# index.
logstash:
image: docker.elastic.co/logstash/logstash-oss:6.5.4
container_name: logstash
environment:
- ES_VERSION=6.5.2
volumes:
- ./dev_cfg/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
networks:
- esnet
depends_on:
- elasticsearch
# rtbeat accepts batches of JSON messages from rxtx
# see https://github.com/txn2/rtbeat
rtbeat:
image: txn2/rtbeat:1.1.1
container_name: rtbeat
command: ["-c","/cfg/rtbeat.yml","-e","-d", "\"*\""]
volumes:
- ./dev_cfg:/cfg
networks:
- esnet
depends_on:
- logstash
# rxtx receives JSON post messages. Every interval seconds rxtx
# sends a batch of received messages to rtbeat.
# see https://github.com/txn2/rxtx
rxtx:
image: txn2/rxtx:2.0.1
container_name: rxtx
command: ["-ingest","http://rtbeat:8081/in","-interval","5","-port","8090"]
ports:
- "8090:8090"
volumes:
- ./dev_cfg:/cfg
networks:
- esnet
depends_on:
- rtbeat
# tm is used for defining the strucutre and Elasticsearch indexing rules for Messages
# sent to Elasticsearch from rxtx through rtBeat with the key rxtxMsg. tm Models define
# the properties of the rxtx payload.
# see https://github.com/txn2/tm
tm:
image: txn2/tm:v0.2.0
container_name: tm
restart: unless-stopped
environment:
- DEBUG=false
- IP=0.0.0.0
- PORT=8080
- TOKEN_EXP=1440
- TOKEN_KEY=somesharedkey
- AGENT="DockerCompose"
- SERVICE_ENV="local"
ports:
- "8085:8080"
networks:
- esnet
depends_on:
- elasticsearch
# use Kibana to visualize and debug data
# http://localhost:5601
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.5.2
container_name: kibana
environment:
SERVER_NAME: kibana-server
ELASTICSEARCH_URL: http://elasticsearch:9200
networks:
- esnet
ports:
- "5601:5601"
depends_on:
- elasticsearch
# use Cerebro to visualize and debug Elasticsearch
# http://localhost:9900/#/overview?host=http:%2F%2Felasticsearch:9200
cerebro:
image: yannart/cerebro:0.8.1
container_name: cerebro
networks:
- esnet
ports:
- "9900:9000"
depends_on:
- elasticsearch
volumes:
esdata:
driver: local
networks:
esnet:
driver: bridge