1
- services :
2
- elasticsearch :
3
- image : elasticsearch:${STACK_VERSION}
4
- volumes :
5
- - esdata01:/usr/share/elasticsearch/data
6
- ports :
7
- - ${ES_PORT}:9200
8
- environment :
9
- - node.name=elasticsearch
10
- - discovery.type=single-node
11
- - bootstrap.memory_lock=true
12
- - xpack.security.enabled=false
13
- mem_limit : ${ES_MEM_LIMIT}
14
- ulimits :
15
- memlock :
16
- soft : -1
17
- hard : -1
18
- healthcheck :
19
- test :
20
- [
21
- " CMD-SHELL" ,
22
- " curl http://elasticsearch:9200" ,
23
- ]
24
- interval : 10s
25
- timeout : 10s
26
- retries : 120
27
-
28
- kibana :
29
- depends_on :
30
- elasticsearch :
31
- condition : service_healthy
32
- image : kibana:${STACK_VERSION}
33
- volumes :
34
- - kibanadata:/usr/share/kibana/data
35
- ports :
36
- - ${KIBANA_PORT}:5601
37
- environment :
38
- - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
39
- mem_limit : ${KB_MEM_LIMIT}
40
- healthcheck :
41
- test :
42
- [
43
- " CMD-SHELL" ,
44
- " curl http://localhost:5601" ,
45
- ]
46
- interval : 10s
47
- timeout : 10s
48
- retries : 120
1
+ include :
2
+ - path :
3
+ - docker-compose.dev.elastic.yaml
49
4
50
- logstash :
51
- depends_on :
52
- elasticsearch :
53
- condition : service_healthy
54
- kibana :
55
- condition : service_healthy
56
- image : logstash:${STACK_VERSION}
57
- mem_limit : ${LS_MEM_LIMIT}
58
- volumes :
59
- - logstashdata:/usr/share/logstash/data
5
+ services :
6
+ event-sidecar :
7
+ extends :
8
+ file : docker-compose.dev.logs-base.yaml
9
+ service : event-sidecar
10
+ lumberjack :
11
+ extends :
12
+ file : docker-compose.dev.logs-base.yaml
13
+ service : lumberjack
60
14
environment :
61
- - xpack.monitoring.enabled=true
62
- - ELASTIC_HOSTS=http://elasticsearch:9200
63
- - ELASTIC_USER=elastic
64
- - ELASTIC_PASSWORD=""
65
-
66
- apm-server :
67
- image : elastic/apm-server:${STACK_VERSION}
68
- container_name : apm-server
69
- command : > # -e because logs
70
- apm-server -e
71
- -E apm-server.rum.enabled=true
72
- -E setup.kibana.host=http://kibana:5601
73
- -E setup.template.settings.index.number_of_replicas=0
74
- -E apm-server.kibana.enabled=true
75
- -E apm-server.kibana.host=http://kibana:5601
76
- -E output.elasticsearch.host=http://elasticsearch:9200
77
- ports :
78
- - ${APMSERVER_PORT}:8200
79
- depends_on :
80
- elasticsearch :
81
- condition : service_healthy
82
-
83
- volumes :
84
- esdata01 :
85
- driver : local
86
- kibanadata :
87
- driver : local
88
- logstashdata :
89
- driver : local
15
+ ELASTIC_SEARCH_VERSION : ${ELASTIC_STACK_VERSION}
16
+ ELASTIC_HOST : http://elasticsearch:9200
0 commit comments