Skip to content

Instantly share code, notes, and snippets.

@tmurphree
Created February 28, 2020 04:06
Show Gist options
  • Save tmurphree/ed034572d0bf2195389aab35d4003d84 to your computer and use it in GitHub Desktop.
Save tmurphree/ed034572d0bf2195389aab35d4003d84 to your computer and use it in GitHub Desktop.
docker-compose file for elasticsearch with kibana
# elasticsearch will be available on http://localhost:9200
# kibana will be available on http://localhost:5601
version: '3.7'
services:
elasticsearchnode01:
environment:
# Use single node discovery in order to disable production mode and avoid bootstrap checks
# see https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node
image: elasticsearch:7.6.0
networks:
- customDockerNetwork
ports:
- "9200:9200"
- "9300:9300"
kibananode01:
# wait for the elasticsearch container to start before starting
# https://docs.docker.com/compose/startup-order/
depends_on:
- elasticsearchnode01
environment:
ELASTICSEARCH_HOSTS: http://elasticsearchnode01:9200
image: kibana:7.6.0
networks:
- customDockerNetwork
ports:
- "5601:5601"
# see https://docs.docker.com/compose/compose-file/#network-configuration-reference
networks:
customDockerNetwork:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment