Skip to content

Commit 0c2d803

Browse files
ajpahl1008Toby McLaughlin
authored andcommitted
Added apm and setup_apm
1 parent 451f551 commit 0c2d803

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
156169
networks: {stack: {}}

0 commit comments

Comments
 (0)