diff --git a/docker-compose.yml b/docker-compose.yml index ba84d5a8..e1f0933d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: - docker_elk # volumes: # - my-path:/var/ossec/data +# - my-path:/etc/postfix depends_on: - elasticsearch logstash: diff --git a/wazuh/Dockerfile b/wazuh/Dockerfile index f411fdcb..1173f6fd 100644 --- a/wazuh/Dockerfile +++ b/wazuh/Dockerfile @@ -4,6 +4,7 @@ COPY config/*.repo /etc/yum.repos.d/ RUN yum -y update; yum clean all; RUN yum -y install epel-release openssl useradd; yum clean all +RUN yum -y install postfix mailx cyrus-sasl cyrus-sasl-plain; yum clean all RUN groupadd -g 1000 ossec RUN useradd -u 1000 -g 1000 ossec RUN yum install -y wazuh-manager wazuh-api diff --git a/wazuh/config/run.sh b/wazuh/config/run.sh index 32bc786a..5e9412a7 100644 --- a/wazuh/config/run.sh +++ b/wazuh/config/run.sh @@ -70,7 +70,7 @@ sleep 15 # give ossec a reasonable amount of time to start before checking statu LAST_OK_DATE=`date +%s` ## Start services - +/usr/sbin/postfix start /bin/node /var/ossec/api/app.js & /usr/bin/filebeat.sh & /var/ossec/bin/ossec-control restart