Skip to content

Instantly share code, notes, and snippets.

@ssi-anik
Last active July 10, 2020 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssi-anik/839b2dcef89e9cbfdbb3173c8a800113 to your computer and use it in GitHub Desktop.
Save ssi-anik/839b2dcef89e9cbfdbb3173c8a800113 to your computer and use it in GitHub Desktop.
docker compose for Elasticsearch, Kibana, APM 6.8 & APM 7.8
version: "2"
services:
php:
build:
dockerfile: php.dockerfile
context: .
volumes:
- .:/app
ports:
- 8008:80
links:
- apm
elasticsearch:
image: bitnami/elasticsearch:7.8.0
volumes:
- ~/.backup/elasticsearch/elastic-apm:/bitnami/elasticsearch/data
- ./bitnami_es_config.yml:/opt/bitnami/elasticsearch/config/elasticsearch.yml
ports:
- 60200:9200
environment:
- BITNAMI_DEBUG=true
kibana:
image: bitnami/kibana:7.8.0
ports:
- 5601:5601
volumes:
- ~/.backup/kibana/elastic-apm:/bitnami
links:
- elasticsearch
environment:
- KIBANA_ELASTICSEARCH_URL=elasticsearch
apm:
image: docker.elastic.co/apm/apm-server-oss:7.8.0
ports:
- 8200:8200
user: apm-server
links:
- elasticsearch
- kibana
command: --strict.perms=false
environment:
- apm-server.host=0.0.0.0
- apm-server.kibana.enabled=true
- apm-server.kibana.host="http://kibana:5601"
- output.elasticsearch.hosts=["elasticsearch:9200"]
- output.elasticsearch.max_retries=1
apm2:
image: docker.elastic.co/apm/apm-server-oss:6.8.9
ports:
- 8201:8200
user: apm-server
links:
- elasticsearch
- kibana
command: --strict.perms=false
environment:
- apm-server.host=0.0.0.0
- apm-server.kibana.enabled=true
- apm-server.kibana.host="http://kibana:5601"
- output.elasticsearch.hosts=["elasticsearch:9200"]
- output.elasticsearch.max_retries=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment