-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
75 lines (70 loc) · 1.81 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
version: '3.0'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.2.0
container_name: elasticsearch
hostname: elasticsearch
restart: unless-stopped
environment:
- cluster.name=docker-cluster
- node.name=node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms384m -Xmx384m"
- "cluster.initial_master_nodes=node1"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- es7net
logstash:
image: docker.elastic.co/logstash/logstash-oss:7.2.0
container_name: logstash
hostname: logstash
restart: always
volumes:
- ./logstash/data:/usr/share/logstash/data:rw
- ./logstash/template:/usr/share/logstash/template:ro
#- ./logstash/logs:/usr/share/logstash/logs:rw
- ./logstash/config/pipelines.yml:/usr/share/logstash/config/pipelines.yml:ro
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro
ports:
- "127.0.0.1:5000:5000/udp"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
networks:
- es7net
depends_on:
- elasticsearch
logspout:
image: bekt/logspout-logstash
container_name: logspout
hostname: logspout
restart: always
environment:
ROUTE_URIS: logstash+tcp://logstash:5000
depends_on:
- logstash
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- es7net
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.2.0
container_name: kibana
hostname: kibana
environment:
SERVER_NAME: kibana_server
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
networks:
- es7net
depends_on:
- elasticsearch
ports:
- 5601:5601
networks:
es7net: