-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.elk.yml
82 lines (75 loc) · 2.38 KB
/
docker-compose.elk.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'
services:
kbe-log-elk-elastic:
image: ${ELK_ES_IMAGE_TAG}
container_name: ${ELK_ES_CONTATINER_NAME}
restart: always
environment:
# Нужно для Dejavu
http.port: 9200
http.max_content_length: 10MB
http.cors.enabled: "true"
http.cors.allow-origin: "'*'"
http.cors.allow-headers: X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
http.cors.allow-credentials: "true"
network.publish_host: localhost
# Чтобы без авторизации
xpack.security.enabled: "false"
xpack.license.self_generated.type: basic
# ES_JAVA_OPTS: "-Xms512m -Xmx512m"
volumes:
- ./data/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- kbe-log-elastic-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- kbe-net
kbe-log-elk-dejavu:
image: ${ELK_DEJAVU_IMAGE_TAG}
container_name: ${ELK_DEJAVU_CONTATINER_NAME}
restart: always
ports:
- 1358:1358
networks:
- kbe-net
depends_on:
- kbe-log-elk-elastic
kbe-log-elk-kibana:
image: ${ELK_KIBANA_IMAGE_TAG}
container_name: ${ELK_KIBANA_CONTATINER_NAME}
restart: always
environment:
XPACK_MONITORING_ELASTICSEARCH_HOSTS: "[http://kbe-log-elk-elastic:9200]"
ELASTICSEARCH_HOSTS: http://kbe-log-elk-elastic:9200
network.host: 0.0.0.0
ports:
- 5601:5601
networks:
- kbe-net
depends_on:
- kbe-log-elk-elastic
kbe-log-elk-logstash:
image: ${ELK_LOGSTASH_IMAGE_TAG}
container_name: ${ELK_LOGSTASH_CONTATINER_NAME}
restart: always
environment:
XPACK_MONITORING_ELASTICSEARCH_HOSTS: "[http://kbe-log-elk-elastic:9200]"
XPACK_MONITORING_ELASTICSEARCH_SSL_VERIFICATION_MODE: none
volumes:
- kbe-log-data:/opt/kbengine/assets/logs
- ./data/logstash/shedu_says_hello.log:/opt/kbengine/assets/logs/${GAME_COMPOSE_PROJECT_NAME}/shedu_says_hello.log:ro
- ./data/logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
- ./data/logstash/kbe_patterns:/usr/share/logstash/config/patterns/kbe
networks:
- kbe-net
depends_on:
- kbe-log-elk-elastic
volumes:
kbe-log-data:
name: ${KBE_LOG_VOLUME_NAME}
external: true
kbe-log-elastic-data:
name: ${ELK_ES_VOLUME_NAME}
external: true
networks:
kbe-net: