snippets/docker/docker-compose-es7.yml
2024-10-03 01:47:38 +02:00

40 lines
860 B
YAML

version: '3.6'
services:
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.0.0-alpha2'
restart: always
container_name: elasticsearch
hostname: elasticsearch
environment:
- cluster.name=elasticsearch
- bootstrap.memory_lock=true
- transport.host=localhost
- "ES_JAVA_OPTS=-Xms1G -Xmx2G"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./esdata:/usr/share/elasticsearch/data
expose:
- 9200
networks:
- esnet
kibana:
image: 'docker.elastic.co/kibana/kibana:7.0.0-alpha2'
restart: always
container_name: kibana
hostname: kibana
ports:
- "5601:5601"
depends_on:
- elasticsearch
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
networks:
- esnet
networks:
esnet: