forked from wazuh/wazuh-docker
Add generate-elasticsearch-certs.yml and instances.yml
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
version: '2.2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
create_certs:
|
||||||
|
container_name: create_certs
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
|
||||||
|
command: >
|
||||||
|
bash -c '
|
||||||
|
if [[ ! -f config/certificates/bundle.zip ]]; then
|
||||||
|
bin/elasticsearch-certutil cert --silent --pem --in config/certificates/instances.yml -out config/certificates/bundle.zip;
|
||||||
|
unzip config/certificates/bundle.zip -d config/certificates/;
|
||||||
|
fi;
|
||||||
|
chown -R 1000:0 /certs
|
||||||
|
'
|
||||||
|
user: "0"
|
||||||
|
working_dir: /usr/share/elasticsearch
|
||||||
|
volumes: ['./xpack:/usr/share/elasticsearch/config/certificates']
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
instances:
|
||||||
|
- name: elasticsearch
|
||||||
|
dns:
|
||||||
|
- elasticsearch
|
||||||
|
- localhost
|
||||||
|
ip:
|
||||||
|
- 127.0.0.1
|
||||||
|
|
||||||
|
- name: elasticsearch2
|
||||||
|
dns:
|
||||||
|
- elasticsearch2
|
||||||
|
- localhost
|
||||||
|
ip:
|
||||||
|
- 127.0.0.1
|
||||||
|
|
||||||
|
- name: elasticsearch3
|
||||||
|
dns:
|
||||||
|
- elasticsearch3
|
||||||
|
- localhost
|
||||||
|
ip:
|
||||||
|
- 127.0.0.1
|
||||||
|
|
||||||
|
- name: kibana
|
||||||
|
dns:
|
||||||
|
- kibana
|
||||||
|
- localhost
|
||||||
|
ip:
|
||||||
|
- 127.0.0.1
|
||||||
|
|
||||||
|
- name: wazuh
|
||||||
|
dns:
|
||||||
|
- wazuh
|
||||||
|
- localhost
|
||||||
|
ip:
|
||||||
|
- 127.0.0.1
|
||||||
Reference in New Issue
Block a user