Fixed ELK-Stack Docker config
This commit is contained in:
4
dockerfiles/elk/README
Normal file
4
dockerfiles/elk/README
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#You need to increase the default vm.max_map_count value to 262144
|
||||||
|
sysctl -w vm.max_map_count=262144
|
||||||
|
#or persistently
|
||||||
|
echo "vm.max_map_count = 262144" | sudo tee /etc/sysctl.d/98-elkdocker.conf
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
version: '2.2'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
|
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
|
||||||
container_name: elasticsearch
|
container_name: elasticsearch
|
||||||
hostname: elasticsearch
|
hostname: elasticsearch
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
ports:
|
||||||
- "10.1.0.10:9200:9200"
|
- "9200:9200"
|
||||||
- "10.1.0.10:9300:9300"
|
- "9300:9300"
|
||||||
volumes:
|
volumes:
|
||||||
- elastic-data:/usr/share/elasticsearch/data
|
- elastic-data:/usr/share/elasticsearch/data
|
||||||
environment:
|
environment:
|
||||||
@@ -22,12 +21,10 @@ services:
|
|||||||
- elk
|
- elk
|
||||||
|
|
||||||
kibana:
|
kibana:
|
||||||
image:
|
image: docker.elastic.co/kibana/kibana:6.3.2
|
||||||
kibana
|
|
||||||
hostname: kibana
|
hostname: kibana
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
ports:
|
||||||
- "10.1.0.10:5601:5601"
|
- "5601:5601"
|
||||||
networks:
|
networks:
|
||||||
- elk
|
- elk
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user