File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,13 @@ services:
9393 command : packetbeat -v -e -E output.elasticsearch.hosts='["localhost:9200"]'
9494 depends_on : ['elasticsearch']
9595
96+ apm :
97+ image : docker.elastic.co/apm/apm-server:${TAG}
98+ ports : ['127.0.0.1:8200:8200']
99+ networks : ['stack']
100+ command : apm-server -v -e -E output.elasticsearch.hosts='["elasticsearch:9200"]' -E apm-server.host=apm:8200 -E output.elasticsearch.username=elastic -E output.elasticsearch.password=${ELASTIC_PASSWORD}
101+ depends_on : ['elasticsearch','setup_apm']
102+
96103 # Run a short-lived container to set up Logstash.
97104 setup_logstash :
98105 image : centos:7
@@ -153,4 +160,10 @@ services:
153160 networks : ['stack']
154161 depends_on : ['kibana']
155162
163+ setup_apm :
164+ image : docker.elastic.co/apm/apm-server:${TAG}
165+ command : ./apm-server setup -E setup.kibana.host=kibana:5601
166+ networks : ['stack']
167+ depends_on : ['elasticsearch','kibana']
168+
156169networks : {stack: {}}
You can’t perform that action at this time.
0 commit comments