adding in elasticsearch
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# Version of Elastic products
|
||||
STACK_VERSION=8.4.0 # Port to expose Elasticsearch HTTP API to the host
|
||||
ES_PORT=9200 # Port to expose Kibana to the host
|
||||
KIBANA_PORT=5601
|
||||
@@ -0,0 +1,33 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
elasticsearch:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
|
||||
container_name: elasticsearch
|
||||
volumes:
|
||||
- elasticsearch-data:/usr/share/elasticsearch/data
|
||||
ports:
|
||||
- ${ES_PORT}:9200
|
||||
restart: always
|
||||
environment:
|
||||
- xpack.security.enabled=false
|
||||
- discovery.type=single-node
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
hard: -1
|
||||
kibana:
|
||||
depends_on:
|
||||
- elasticsearch
|
||||
image: docker.elastic.co/kibana/kibana:${STACK_VERSION}
|
||||
container_name: kibana
|
||||
volumes:
|
||||
- kibana-data:/usr/share/kibana/data
|
||||
ports:
|
||||
- ${KIBANA_PORT}:5601
|
||||
restart: always
|
||||
environment:
|
||||
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200volumes:
|
||||
elasticsearch-data:
|
||||
driver: local
|
||||
kibana-data:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user