forked from wazuh/wazuh-docker
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:
@@ -14,6 +14,7 @@ services:
|
|||||||
- docker_elk
|
- docker_elk
|
||||||
# volumes:
|
# volumes:
|
||||||
# - my-path:/var/ossec/data
|
# - my-path:/var/ossec/data
|
||||||
|
# - my-path:/etc/postfix
|
||||||
depends_on:
|
depends_on:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
logstash:
|
logstash:
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ COPY config/*.repo /etc/yum.repos.d/
|
|||||||
|
|
||||||
RUN yum -y update; yum clean all;
|
RUN yum -y update; yum clean all;
|
||||||
RUN yum -y install epel-release openssl useradd; 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 groupadd -g 1000 ossec
|
||||||
RUN useradd -u 1000 -g 1000 ossec
|
RUN useradd -u 1000 -g 1000 ossec
|
||||||
RUN yum install -y wazuh-manager wazuh-api
|
RUN yum install -y wazuh-manager wazuh-api
|
||||||
|
|||||||
+1
-1
@@ -70,7 +70,7 @@ sleep 15 # give ossec a reasonable amount of time to start before checking statu
|
|||||||
LAST_OK_DATE=`date +%s`
|
LAST_OK_DATE=`date +%s`
|
||||||
|
|
||||||
## Start services
|
## Start services
|
||||||
|
/usr/sbin/postfix start
|
||||||
/bin/node /var/ossec/api/app.js &
|
/bin/node /var/ossec/api/app.js &
|
||||||
/usr/bin/filebeat.sh &
|
/usr/bin/filebeat.sh &
|
||||||
/var/ossec/bin/ossec-control restart
|
/var/ossec/bin/ossec-control restart
|
||||||
|
|||||||
Reference in New Issue
Block a user