forked from deviantony/docker-elk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (75 loc) · 1.88 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
version: '3.4'
services:
elasticsearch:
container_name: elasticsearch
build:
context: elasticsearch/
args:
ELK_VERSION: $ELK_VERSION
ELK_FLAVOUR: $ELK_FLAVOUR
SG_VERSION: $SG_VERSION
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx1g -Xms1g"
networks:
- elk
restart: unless-stopped
environment:
- TZ=$TIMEZONE
logstash:
container_name: logstash
build:
context: logstash/
args:
ELK_VERSION: $ELK_VERSION
ELK_FLAVOUR: $ELK_FLAVOUR
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro
- logstash-sincedb:/usr/share/logstash/data/plugins/inputs/file
- /home/linkify/public_html/linkify/var/logs/:/usr/share/logstash/logs/app.linkify:ro
ports:
- "5000:5000"
- "9600:9600"
environment:
LS_JAVA_OPTS: "-Xmx1g -Xms1g"
networks:
- elk
depends_on:
- elasticsearch
restart: unless-stopped
environment:
- TZ=$TIMEZONE
kibana:
container_name: kibana
build:
context: kibana/
args:
ELK_VERSION: $ELK_VERSION
ELK_FLAVOUR: $ELK_FLAVOUR
SG_VERSION_KIBANA: $SG_VERSION_KIBANA
SENTINL_GIT_TAG: $SENTINL_GIT_TAG
volumes:
- ./kibana/config/:/usr/share/kibana/config:ro
ports:
- "5601:5601"
networks:
- elk
depends_on:
- elasticsearch
restart: unless-stopped
environment:
- TZ=$TIMEZONE
networks:
elk:
driver: bridge
volumes:
elasticsearch-data:
name: elasticsearch-data
logstash-sincedb:
name: logstash-sincedb