mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-27 01:53:36 +00:00
Set urls to production
This commit is contained in:
@@ -3,7 +3,7 @@ version: '3.7'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
wazuh.manager:
|
wazuh.manager:
|
||||||
image: wazuh/wazuh-manager:4.3.0-dev
|
image: wazuh/wazuh-manager:4.3.0
|
||||||
hostname: wazuh.manager
|
hostname: wazuh.manager
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -30,7 +30,7 @@ services:
|
|||||||
- filebeat_var:/var/lib/filebeat
|
- filebeat_var:/var/lib/filebeat
|
||||||
|
|
||||||
wazuh1.indexer:
|
wazuh1.indexer:
|
||||||
image: wazuh/wazuh-indexer:4.3.0-dev-test
|
image: wazuh/wazuh-indexer:4.3.0
|
||||||
hostname: wazuh1.indexer
|
hostname: wazuh1.indexer
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -46,7 +46,7 @@ services:
|
|||||||
hard: 65536
|
hard: 65536
|
||||||
|
|
||||||
wazuh.dashboard:
|
wazuh.dashboard:
|
||||||
image: wazuh/wazuh-dashboard:4.3.0-dev-test
|
image: wazuh/wazuh-dashboard:4.3.0
|
||||||
hostname: wazuh.dashboard
|
hostname: wazuh.dashboard
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ RUN apt-get update && apt install curl libcap2-bin xz-utils -y
|
|||||||
RUN mkdir -p $INSTALL_DIR
|
RUN mkdir -p $INSTALL_DIR
|
||||||
|
|
||||||
# Download and extract Wazuh dashboard base
|
# Download and extract Wazuh dashboard base
|
||||||
RUN curl -o wazuh-dashboard-base.tar.xz https://packages-dev.wazuh.com/stack/dashboard/base/wazuh-dashboard-base-${WAZUH_VERSION}-testing-linux-x64.tar.xz && \
|
RUN curl -o wazuh-dashboard-base.tar.xz https://packages.wazuh.com/stack/dashboard/base/wazuh-dashboard-base-${WAZUH_VERSION}-linux-x64.tar.xz && \
|
||||||
tar -xf wazuh-dashboard-base.tar.xz --directory $INSTALL_DIR --strip-components=1
|
tar -xf wazuh-dashboard-base.tar.xz --directory $INSTALL_DIR --strip-components=1
|
||||||
|
|
||||||
# Generate certificates
|
# Generate certificates
|
||||||
@@ -25,7 +25,7 @@ RUN $INSTALL_DIR/bin/opensearch-dashboards-keystore create --allow-root && \
|
|||||||
echo kibanaserver | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.password --stdin --allow-root
|
echo kibanaserver | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.password --stdin --allow-root
|
||||||
|
|
||||||
# Install Wazuh App
|
# Install Wazuh App
|
||||||
RUN $INSTALL_DIR/bin/opensearch-dashboards-plugin install https://packages-dev.wazuh.com/pre-release/ui/dashboard/wazuh-${WAZUH_VERSION}.zip --allow-root
|
RUN $INSTALL_DIR/bin/opensearch-dashboards-plugin install https://packages.wazuh.com/4.x/ui/dashboard/wazuh-${WAZUH_VERSION}.zip --allow-root
|
||||||
|
|
||||||
# Copy and set permissions to config files
|
# Copy and set permissions to config files
|
||||||
COPY config/opensearch_dashboards.yml $INSTALL_DIR/config/
|
COPY config/opensearch_dashboards.yml $INSTALL_DIR/config/
|
||||||
|
|||||||
@@ -16,13 +16,13 @@ export INSTALLATION_DIR=/usr/share/${NAME}
|
|||||||
export CONFIG_DIR=${INSTALLATION_DIR}/config
|
export CONFIG_DIR=${INSTALLATION_DIR}/config
|
||||||
export BASE_DIR=${NAME}-*
|
export BASE_DIR=${NAME}-*
|
||||||
export INDEXER_FILE=wazuh-indexer-base.tar.xz
|
export INDEXER_FILE=wazuh-indexer-base.tar.xz
|
||||||
export BASE_FILE=wazuh-indexer-base-${VERSION}-testing-linux-x64.tar.xz
|
export BASE_FILE=wazuh-indexer-base-${VERSION}-linux-x64.tar.xz
|
||||||
export REPO_DIR=/unattended_installer
|
export REPO_DIR=/unattended_installer
|
||||||
|
|
||||||
|
|
||||||
rm -rf ${INSTALLATION_DIR}/
|
rm -rf ${INSTALLATION_DIR}/
|
||||||
|
|
||||||
curl -o ${INDEXER_FILE} https://packages-dev.wazuh.com/stack/indexer/base/${BASE_FILE}
|
curl -o ${INDEXER_FILE} https://packages.wazuh.com/stack/indexer/base/${BASE_FILE}
|
||||||
tar -xf ${INDEXER_FILE}
|
tar -xf ${INDEXER_FILE}
|
||||||
|
|
||||||
## TOOLS
|
## TOOLS
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ ARG TEMPLATE_VERSION="master"
|
|||||||
ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz"
|
ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz"
|
||||||
|
|
||||||
# Set repositories.
|
# Set repositories.
|
||||||
RUN rpm --import https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH
|
RUN rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH
|
||||||
|
|
||||||
COPY config/wazuh.repo /etc/yum.repos.d/wazuh.repo
|
COPY config/wazuh.repo /etc/yum.repos.d/wazuh.repo
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ RUN yum --enablerepo=updates clean metadata && \
|
|||||||
sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo && \
|
sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo && \
|
||||||
yum clean all && rm -rf /var/cache/yum
|
yum clean all && rm -rf /var/cache/yum
|
||||||
|
|
||||||
RUN curl -L -O https://packages-dev.wazuh.com/pre-release/yum/${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-x86_64.rpm &&\
|
RUN curl -L -O https://packages.wazuh.com/4.x/yum/${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-x86_64.rpm &&\
|
||||||
rpm -i ${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-x86_64.rpm && rm -f ${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-x86_64.rpm
|
rpm -i ${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-x86_64.rpm && rm -f ${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-x86_64.rpm
|
||||||
|
|
||||||
RUN curl -s https://packages.wazuh.com/4.x/filebeat/${WAZUH_FILEBEAT_MODULE} | tar -xvz -C /usr/share/filebeat/module
|
RUN curl -s https://packages.wazuh.com/4.x/filebeat/${WAZUH_FILEBEAT_MODULE} | tar -xvz -C /usr/share/filebeat/module
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[wazuh_repo]
|
[wazuh_repo]
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
gpgkey=https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH
|
gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH
|
||||||
enabled=1
|
enabled=1
|
||||||
name=Wazuh repository
|
name=Wazuh repository
|
||||||
baseurl=https://packages-dev.wazuh.com/pre-release/yum/
|
baseurl=https://packages.wazuh.com/4.x/yum/
|
||||||
protect=1
|
protect=1
|
||||||
|
|||||||
Reference in New Issue
Block a user