-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstack.yml
54 lines (49 loc) · 1.3 KB
/
stack.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
#
# the b-e-k-stack (beautful-ever-known? just kidding, :)
# ^_ a collection of beats, elasticsearch and kibana stack for Docker Swarm Mode
#
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION:-6.3.0}
environment:
ES_JAVA_OPTS: '-Xms256m -Xmx256m'
xpack.security.enabled: 'false'
xpack.monitoring.enabled: 'false'
xpack.graph.enabled: 'false'
xpack.watcher.enabled: 'false'
volumes:
- es1data:/usr/share/elasticsearch/data
deploy:
replicas: 1
placement:
constraints:
- node.labels.elasticsearch == es1
filebeat:
image: filebeat:${VERSION:-6.3.0}-custom
environment:
ELASTICSEARCH_HOST: 'elasticsearch'
ELASTICSEARCH_PORT: '9200'
volumes:
- /var/lib/docker:/var/lib/docker:ro
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 30s
kibana:
image: docker.elastic.co/kibana/kibana:${VERSION:-6.3.0}
ports:
- '80:5601'
depends_on:
- elasticsearch
environment:
ELASTICSEARCH_HOST: 'elasticsearch'
ELASTICSEARCH_PORT: '9200'
XPACK_SECURITY_ENABLED: 'false'
XPACK_MONITORING_ENABLED: 'false'
deploy:
replicas: 1
volumes:
es1data:
driver: local