forked from wazuh/wazuh-docker
clean Dockerfile and docker-compose start script
This commit is contained in:
@@ -57,8 +57,6 @@ services:
|
|||||||
- ELASTICSEARCH_PASSWORD=admin
|
- ELASTICSEARCH_PASSWORD=admin
|
||||||
- SERVER_SSL_ENABLED=false
|
- SERVER_SSL_ENABLED=false
|
||||||
- WAZUH_API_URL=https://wazuh.manager
|
- WAZUH_API_URL=https://wazuh.manager
|
||||||
#volumes:
|
|
||||||
# - ./production_cluster/wazuh_dashboard/dashboard.yml:/etc/wazuh-dashboard/dashboard.yml
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
ossec_api_configuration:
|
ossec_api_configuration:
|
||||||
|
|||||||
@@ -152,7 +152,6 @@ services:
|
|||||||
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh.dashboard-key.pem:/etc/wazuh-dashboard/certs/wazuh-dashboard-key.pem
|
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh.dashboard-key.pem:/etc/wazuh-dashboard/certs/wazuh-dashboard-key.pem
|
||||||
- ./production_cluster/wazuh_indexer_ssl_certs/root-ca.pem:/etc/wazuh-dashboard/certs/root-ca.pem
|
- ./production_cluster/wazuh_indexer_ssl_certs/root-ca.pem:/etc/wazuh-dashboard/certs/root-ca.pem
|
||||||
- ./production_cluster/wazuh_dashboard/dashboard.yml:/etc/wazuh-dashboard/dashboard.yml
|
- ./production_cluster/wazuh_dashboard/dashboard.yml:/etc/wazuh-dashboard/dashboard.yml
|
||||||
#- ./production_cluster/wazuh_dashboard/wazuh:/usr/share/wazuh-dashboard/data/wazuh
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- wazuh1.indexer
|
- wazuh1.indexer
|
||||||
links:
|
links:
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
hosts:
|
|
||||||
- default:
|
|
||||||
url: https://wazuh.master
|
|
||||||
port: 55000
|
|
||||||
username: acme-user
|
|
||||||
password: MyS3cr37P450r.*-
|
|
||||||
run_as: false
|
|
||||||
|
|
||||||
@@ -12,23 +12,19 @@ RUN sha256sum -c ${tini_bin}.sha256sum && \
|
|||||||
rm ${tini_bin}.sha256sum && \
|
rm ${tini_bin}.sha256sum && \
|
||||||
mv ${tini_bin} /tini && \
|
mv ${tini_bin} /tini && \
|
||||||
chmod +x /tini
|
chmod +x /tini
|
||||||
#RUN mkdir /usr/share/wazuh-indexer
|
|
||||||
#WORKDIR /usr/share/opensearch
|
|
||||||
#RUN tar zxf /opt/opensearch.tar.gz --strip-components=1
|
|
||||||
#RUN sed -i -e 's/OPENSEARCH_DISTRIBUTION_TYPE=tar/OPENSEARCH_DISTRIBUTION_TYPE=docker/' /usr/share/opensearch/bin/opensearch-env
|
|
||||||
#RUN mkdir -p config config/jvm.options.d data logs
|
|
||||||
#RUN chmod 0775 config config/jvm.options.d data logs
|
|
||||||
#COPY config/opensearch.yml config/log4j2.properties config/
|
|
||||||
#RUN chmod 0660 config/opensearch.yml config/log4j2.properties
|
|
||||||
COPY config/unattended_installer.tar.gz /
|
COPY config/unattended_installer.tar.gz /
|
||||||
|
|
||||||
COPY config/config.sh .
|
COPY config/config.sh .
|
||||||
|
|
||||||
RUN tar -xzvf /unattended_installer.tar.gz
|
RUN tar -xzvf /unattended_installer.tar.gz
|
||||||
|
|
||||||
RUN bash config.sh
|
RUN bash config.sh
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Build stage 1 (the actual OpenSearch image):
|
# Build stage 1 (the actual Wazuh indexer image):
|
||||||
#
|
#
|
||||||
# Copy opensearch from stage 0
|
# Copy wazuh-indexer from stage 0
|
||||||
# Add entrypoint
|
# Add entrypoint
|
||||||
################################################################################
|
################################################################################
|
||||||
FROM ubuntu:focal
|
FROM ubuntu:focal
|
||||||
|
|||||||
Reference in New Issue
Block a user