Skip to content

Instantly share code, notes, and snippets.

@battleguard
Last active June 25, 2018 19:42
Show Gist options
  • Save battleguard/ede1e672859428befb0545c8e7666b14 to your computer and use it in GitHub Desktop.
Save battleguard/ede1e672859428befb0545c8e7666b14 to your computer and use it in GitHub Desktop.
Docker Compose for Elastic and Kibana
version: '3.1'
services:
kibana:
container_name: kibana_container
image: kibana
volumes:
#- ./kibana.yml:/opt/kibana/config/kibana.yml
- ./kibana.yml:/etc/kibana/kibana.yml
#ports:
#- 5601:5601
networks:
- woodshop
depends_on:
- elasticsearch
elasticsearch:
container_name: elasticsearch_container
image: elasticsearch
# ports:
# - 9200:9200
# - 9300:9300
networks:
- woodshop
networks:
woodshop:
external: true
#docker run -p 9200:9200 -p 9300:9300 -it -h elasticsearch --name elasticsearch elasticsearch
#docker run -p 5601:5601 -h kibana --name kibana --link elasticsearch:elasticsearch kibana
<Location /kibana/>
ProxyPass http://kibana:5601/
ProxyPassReverse http://kibana:5601/
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment