-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
73 lines (66 loc) · 1.23 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
version: '2'
services:
web:
image: springio/skeleton-ws-spring-boot
ports:
- "8080:8080"
links:
- logstash
networks:
- front-tier
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 2g
cap_add:
- IPC_LOCK
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
networks:
- back-tier
logstash:
image: logstash
container_name: logstash
command: logstash -f /etc/logstash/conf.d/logstash.conf
volumes:
- ./src/main/logstash/config:/etc/logstash/conf.d
ports:
- "5000:5000"
links:
- elasticsearch
networks:
- front-tier
- back-tier
kibana:
image: kibana
container_name: kibana
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
ports:
- "5601:5601"
links:
- elasticsearch
networks:
- back-tier
volumes:
esdata1:
driver: local
networks:
front-tier:
back-tier:
driver: bridge