-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
100 lines (97 loc) · 2.91 KB
/
docker-compose.dev.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '2'
services:
elasticsearch-logstash:
build:
context: .
dockerfile: templates/esDockerfile
restart: always
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms1g -Xmx1g
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1500m
ports:
- "9200:9200"
expose:
- "9300"
volumes:
- ./config/jvm.options.es:/usr/share/elasticsearch/config/jvm.options
- esdata2:/usr/share/elasticsearch/data
- ./staticConfig/elasticsearchLogstash.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./essnapshot:/mount/backups
# command: ["dockerize", "-wait-retry-interval", "60s", "-timeout", "3600s", "-wait", "tcp://kibana:5601", "/usr/local/bin/docker-entrypoint.sh"]
logging:
driver: "awslogs"
options:
awslogs-group: ${LOG_GROUP_NAME}
awslogs-stream: "elasticsearch-logstash"
logstash:
build:
context: .
dockerfile: templates/logstashDockerfile
restart: always
depends_on:
- elasticsearch-logstash
volumes:
- ./staticConfig/logsToElastic.conf:/usr/share/logstash/pipeline/logsToElastic.conf
- ./config/jvm.options.logstash:/usr/share/logstash/config/jvm.options
environment:
- XPACK_MONITORING_ELASTICSEARCH_URL=elasticsearch-logstash:9200
- LS_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- "5055:5055"
- "5066:5066"
mem_limit: 1g
# command: ["dockerize", "-wait-retry-interval", "60s", "-timeout", "3600s", "-wait", "tcp://kibana:5601", "/usr/local/bin/docker-entrypoint"]
logging:
driver: "awslogs"
options:
awslogs-group: ${LOG_GROUP_NAME}
awslogs-stream: "logstash"
kibana:
build:
context: .
dockerfile: templates/kibanaDockerfile
restart: always
volumes:
- ./staticConfig/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- "35943:5601"
depends_on:
- elasticsearch-logstash
environment:
- XPACK_SECURITY_ENABLED=false
- NODE_OPTIONS=--max_old_space_size=800
mem_limit: 1g
logging:
driver: "awslogs"
options:
awslogs-group: ${LOG_GROUP_NAME}
awslogs-stream: "kibana"
elastalert:
image: bitsensor/elastalert:1.0.0
environment:
ES_HOST: "elasticsearch-logstash"
depends_on:
- elasticsearch-logstash
restart: always
expose:
- "3030"
volumes:
- ./config/rules:/opt/elastalert/rules
- ./staticConfig/elastalert.yaml:/opt/elastalert/config.yaml
- ./staticConfig/elastalert.config-test.yaml:/opt/elastalert/config-test.yaml
- ./staticConfig/elastalert.config.json:/opt/elastalert-server/config/config.json
mem_limit: 500m
logging:
driver: "awslogs"
options:
awslogs-group: ${LOG_GROUP_NAME}
awslogs-stream: "elastalert"
volumes:
esdata2:
driver: local