Add postfix on wazuh container build, add postfix start to run.sh and update docker-compose to allow map postfix configuration folder.

This commit is contained in:
KALRONG
2017-03-24 20:34:59 +01:00
parent b01baac6cd
commit 0557a95992
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@ services:
- docker_elk
# volumes:
# - my-path:/var/ossec/data
# - my-path:/etc/postfix
depends_on:
- elasticsearch
logstash:
+1
View File
@@ -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
+1 -1
View File
@@ -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