mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-24 08:33:46 +00:00
Compare commits
2 Commits
v4.0.2_1.1
...
3.2.1_6.2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
619fba8d2f | ||
|
|
f5fc982bf0 |
@@ -15,7 +15,7 @@ In addition, a docker-compose file is provided to launch the containers mentione
|
|||||||
|
|
||||||
## Current release
|
## Current release
|
||||||
|
|
||||||
Containers are currently tested on Wazuh version 3.2.1 and Elastic Stack version 6.2.2. We will do our best to keep this repository updated to latest versions of both Wazuh and Elastic Stack.
|
Containers are currently tested on Wazuh version 3.2.1 and Elastic Stack version 6.2.4. We will do our best to keep this repository updated to latest versions of both Wazuh and Elastic Stack.
|
||||||
|
|
||||||
## Installation notes
|
## Installation notes
|
||||||
|
|
||||||
@@ -69,6 +69,10 @@ These Docker containers are based on:
|
|||||||
|
|
||||||
We thank you them and everyone else who has contributed to this project.
|
We thank you them and everyone else who has contributed to this project.
|
||||||
|
|
||||||
|
## License and copyright
|
||||||
|
|
||||||
|
Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
|
|
||||||
## Wazuh official website
|
## Wazuh official website
|
||||||
|
|
||||||
[Wazuh website](http://wazuh.com)
|
[Wazuh website](http://wazuh.com)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
version: '2'
|
version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@@ -40,7 +41,7 @@ services:
|
|||||||
- LS_HEAP_SIZE=2048m
|
- LS_HEAP_SIZE=2048m
|
||||||
- XPACK_MONITORING_ENABLED=false
|
- XPACK_MONITORING_ENABLED=false
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.3
|
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
|
||||||
hostname: elasticsearch
|
hostname: elasticsearch
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
FROM docker.elastic.co/kibana/kibana:6.2.3
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
ARG WAZUH_APP_VERSION=3.2.1_6.2.3
|
FROM docker.elastic.co/kibana/kibana:6.2.4
|
||||||
|
ARG WAZUH_APP_VERSION=3.2.1_6.2.4
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
COPY ./config/kibana.yml /usr/share/kibana/config/kibana.yml
|
COPY ./config/kibana.yml /usr/share/kibana/config/kibana.yml
|
||||||
@@ -10,10 +11,6 @@ ADD https://packages.wazuh.com/wazuhapp/wazuhapp-${WAZUH_APP_VERSION}.zip /tmp
|
|||||||
|
|
||||||
ADD https://raw.githubusercontent.com/wazuh/wazuh/3.2/extensions/elasticsearch/wazuh-elastic6-template-alerts.json /usr/share/kibana/config
|
ADD https://raw.githubusercontent.com/wazuh/wazuh/3.2/extensions/elasticsearch/wazuh-elastic6-template-alerts.json /usr/share/kibana/config
|
||||||
|
|
||||||
ADD https://raw.githubusercontent.com/wazuh/wazuh/3.2/extensions/elasticsearch/wazuh-elastic6-template-monitoring.json /usr/share/kibana/config
|
|
||||||
|
|
||||||
ADD https://raw.githubusercontent.com/wazuh/wazuh/3.2/extensions/elasticsearch/alert_sample.json /usr/share/kibana/config
|
|
||||||
|
|
||||||
RUN /usr/share/kibana/bin/kibana-plugin install file:///tmp/wazuhapp-${WAZUH_APP_VERSION}.zip
|
RUN /usr/share/kibana/bin/kibana-plugin install file:///tmp/wazuhapp-${WAZUH_APP_VERSION}.zip
|
||||||
|
|
||||||
RUN chown -R kibana.kibana /usr/share/kibana
|
RUN chown -R kibana.kibana /usr/share/kibana
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -17,14 +18,6 @@ sleep 5
|
|||||||
#Insert default templates
|
#Insert default templates
|
||||||
cat /usr/share/kibana/config/wazuh-elastic6-template-alerts.json | curl -XPUT "http://$host:9200/_template/wazuh" -H 'Content-Type: application/json' -d @-
|
cat /usr/share/kibana/config/wazuh-elastic6-template-alerts.json | curl -XPUT "http://$host:9200/_template/wazuh" -H 'Content-Type: application/json' -d @-
|
||||||
|
|
||||||
sleep 5
|
|
||||||
#Insert default templates
|
|
||||||
cat /usr/share/kibana/config/wazuh-elastic6-template-monitoring.json | curl -XPUT "http://$host:9200/_template/wazuh-agent" -H 'Content-Type: application/json' -d @-
|
|
||||||
|
|
||||||
#Insert sample alert:
|
|
||||||
sleep 5
|
|
||||||
cat /usr/share/kibana/config/alert_sample.json | curl -XPUT "http://$host:9200/wazuh-alerts-3.x-"`date +%Y.%m.%d`"/wazuh/sample" -H 'Content-Type: application/json' -d @-
|
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
echo "Setting API credentials into Wazuh APP"
|
echo "Setting API credentials into Wazuh APP"
|
||||||
CONFIG_CODE=$(curl -s -o /dev/null -w "%{http_code}" -XGET http://$host:9200/.wazuh/wazuh-configuration/1513629884013)
|
CONFIG_CODE=$(curl -s -o /dev/null -w "%{http_code}" -XGET http://$host:9200/.wazuh/wazuh-configuration/1513629884013)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
FROM docker.elastic.co/logstash/logstash:6.2.3
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
|
FROM docker.elastic.co/logstash/logstash:6.2.4
|
||||||
|
|
||||||
COPY config/logstash.conf /etc/logstash/conf.d/logstash.conf
|
COPY config/logstash.conf /etc/logstash/conf.d/logstash.conf
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
# Wazuh - Logstash configuration file
|
# Wazuh - Logstash configuration file
|
||||||
## Remote Wazuh Manager - Filebeat input
|
## Remote Wazuh Manager - Filebeat input
|
||||||
input {
|
input {
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
#
|
|
||||||
# OSSEC container bootstrap. See the README for information of the environment
|
|
||||||
# variables expected by this script.
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Apply Templates
|
# Apply Templates
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
FROM nginx:latest
|
FROM nginx:latest
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y openssl apache2-utils
|
RUN apt-get update && apt-get install -y openssl apache2-utils
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ! -d /etc/pki/tls/certs ]; then
|
if [ ! -d /etc/pki/tls/certs ]; then
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
FROM phusion/baseimage:latest
|
FROM phusion/baseimage:latest
|
||||||
ARG FILEBEAT_VERSION=6.2.3
|
ARG FILEBEAT_VERSION=6.2.4
|
||||||
ARG WAZUH_VERSION=3.2.1-1
|
ARG WAZUH_VERSION=3.2.1-1
|
||||||
|
|
||||||
RUN apt-get update; apt-get -y dist-upgrade
|
RUN apt-get update; apt-get -y dist-upgrade
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
filebeat:
|
filebeat:
|
||||||
prospectors:
|
prospectors:
|
||||||
- input_type: log
|
- input_type: log
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
#
|
#
|
||||||
# Initialize the custom data directory layout
|
# Initialize the custom data directory layout
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Wazuh App Copyright (C) 2018 Wazuh Inc. (License GPLv2)
|
||||||
#
|
|
||||||
# OSSEC container bootstrap. See the README for information of the environment
|
|
||||||
# variables expected by this script.
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# Startup the services
|
# Startup the services
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user