Skip to content

Instantly share code, notes, and snippets.

@philippkahr
Created February 29, 2020 08:37
Show Gist options
  • Save philippkahr/62a6a954df1bf3dc951ebac0e3e1d9d2 to your computer and use it in GitHub Desktop.
Save philippkahr/62a6a954df1bf3dc951ebac0e3e1d9d2 to your computer and use it in GitHub Desktop.
docker-compose single node elasticsearch with kibana
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.0
container_name: elasticsearch1
environment:
- node.name=elasticsearch1
- cluster.name=docker-cluster
- "ES_JAVA_OPTS=-Xms4096M -Xmx4096M"
- "discovery.type=single-node"
ulimits:
nproc: 65535
memlock:
soft: -1
hard: -1
networks:
- elastic
- ingress
ports:
- 9200:9200
- 9300:9300
kibana:
image: docker.elastic.co/kibana/kibana:7.6.0
container_name: kibana
environment:
SERVER_NAME: localhost
ELASTICSEARCH_URL: http://elasticsearch1:9200/
ports:
- 5601:5601
networks:
- elastic
- ingress
networks:
elastic:
ingress:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment