mirror of
https://github.com/Dannecron/netology-devops.git
synced 2025-12-26 07:42:36 +03:00
add homework 6.5: task 1
This commit is contained in:
12
src/homework/06-database/6.5/elasticsearch/Dockerfile
Normal file
12
src/homework/06-database/6.5/elasticsearch/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM elasticsearch:7.16.3
|
||||
|
||||
ENV NODE_NAME=netology_test
|
||||
ENV DISCOVERY_TYPE=single-node
|
||||
ENV ES_HEAP_SIZE=262144
|
||||
|
||||
RUN mkdir -m 774 -p /var/lib/elasticsearch-data \
|
||||
&& chown elasticsearch -R /var/lib/elasticsearch-data \
|
||||
&& mkdir -m 774 -p /var/log/elasticsearch \
|
||||
&& chown elasticsearch -R /var/log/elasticsearch
|
||||
|
||||
COPY ./elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml
|
||||
15
src/homework/06-database/6.5/elasticsearch/elasticsearch.yml
Normal file
15
src/homework/06-database/6.5/elasticsearch/elasticsearch.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
cluster:
|
||||
name: "docker-cluster"
|
||||
network:
|
||||
host: 0.0.0.0
|
||||
node:
|
||||
name: ${NODE_NAME}
|
||||
discovery:
|
||||
type: ${DISCOVERY_TYPE}
|
||||
path:
|
||||
data: /var/lib/elasticsearch-data
|
||||
logs: /var/log/elasticsearch
|
||||
xpack:
|
||||
security:
|
||||
enabled: false
|
||||
Reference in New Issue
Block a user