Skip to content

Instantly share code, notes, and snippets.

@imchao9
Created March 18, 2019 11:38
Show Gist options
  • Save imchao9/6a515c75c82ecbfc684c450fd4ddd5fa to your computer and use it in GitHub Desktop.
Save imchao9/6a515c75c82ecbfc684c450fd4ddd5fa to your computer and use it in GitHub Desktop.
Elastic APM docker-compose file
version: '3'
services:
elasticsearch:
image: elasticsearch:6.6.1
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- "9200:9200"
network_mode: bridge
apm:
build: ./
depends_on:
- elasticsearch
network_mode: bridge
ports:
- "8200:8200"
links:
- "elasticsearch:elasticsearch"
kibana:
image: kibana:6.6.2
depends_on:
- elasticsearch
volumes:
- ./kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- "5601:5601"
network_mode: bridge
links:
- "elasticsearch:elasticsearch"
volumes:
esdata1:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment