Skip to content

Instantly share code, notes, and snippets.

@ChrisChinchilla
Created October 22, 2017 08:14
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 ChrisChinchilla/661e7a5fe80961b65e6a928870dee48f to your computer and use it in GitHub Desktop.
Save ChrisChinchilla/661e7a5fe80961b65e6a928870dee48f to your computer and use it in GitHub Desktop.
Docker Compose file for ELK
version: '2.1'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.0
volumes:
- /Users/chrisward/Workspace/esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- es
kibana:
image: docker.elastic.co/kibana/kibana:5.6.0
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: "http://elasticsearch:9200"
networks:
- es
depends_on:
- elasticsearch
networks:
es:
driver: bridge
@vergissberlin
Copy link

vergissberlin commented Nov 29, 2017

  • "driver" must be indented
  • And why not use relative paths for directory mountings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment