Last active
June 25, 2018 19:42
-
-
Save battleguard/ede1e672859428befb0545c8e7666b14 to your computer and use it in GitHub Desktop.
Docker Compose for Elastic and Kibana
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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