Skip to content

Instantly share code, notes, and snippets.

@megastef
Last active January 20, 2017 10:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save megastef/24aee77ef65d999ec61b to your computer and use it in GitHub Desktop.
Monitor Elasticsearch 2.x with SPM Client on Docker
spm-client:
image: sematext/spm-client
container_name: spm-client
# share the network with the host to reach ES on localhost:9200
net: host
environment:
# SPM Token from http://apps.sematext.com
- SPM_CONFIG=${SPM_TOKEN} es standalone
volumes:
# spm-client > v1.31.65 requires access to docker socket
- /var/run/docker.sock:/var/run/docker.sock
elasticsearch:
image: elasticsearch:latest
net: host
ports:
- "9200:9200"
volumes:
# set your data directory and other options ...
- /var/es-data/:/usr/share/elasticsearch/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment