-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (58 loc) · 1.24 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
version: '3'
services:
elasticsearch:
hostname: elasticsearch
container_name: elasticsearch
environment:
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
build:
context: elasticsearch/
args:
ELK_VERSION: $ELK_VERSION
ports:
- 9200:9200
- 9300:9300
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ./elasticsearch/data:/usr/share/elasticsearch/data
networks:
- elk
kibana:
hostname: kibana
container_name: kibana
build:
context: kibana/
args:
ELK_VERSION: $ELK_VERSION
ports:
- 5601:5601
networks:
- elk
depends_on:
- elasticsearch
volumes:
- ./kibana/config/:/usr/share/kibana/config:ro
- ./kibana/data:/usr/share/kibana/data
cassandra:
hostname: cassandra
container_name: cassandra
image: cassandra:2.1.18
environment:
- JAVA_OPTS=-Xms512m -Xmx512m
ports:
- 9042:9042
- 9160:9160
volumes:
- ./cassandra/data:/var/lib/cassandra
networks:
elk:
driver: bridge