[Policyd] Added policyd Dockerfile

[Compose] Added policyd Service
[Postfix] Added policyd for check_policy_service to main.cf
This commit is contained in:
zekeriya
2019-03-01 10:42:11 +03:00
parent 97adcbe5f8
commit 9b43974c96
11 changed files with 357 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
FROM docker.io/1and1internet/ubuntu-16-apache-php-7.1:latest
ARG DEBIAN_FRONTEND=noninteractive
COPY files /
RUN \
groupadd cbpolicyd && \
useradd -g cbpolicyd cbpolicyd && \
apt-get update && \
apt-get -o Dpkg::Options::=--force-confdef -y install gettext-base postfix-cluebringer postfix-cluebringer-mysql postfix-cluebringer-webui -y && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* /etc/cluebringer && \
mkdir --mode=0775 /etc/cluebringer && \
cp /usr/share/doc/postfix-cluebringer/database/policyd-db.mysql.gz /tmp/ && \
cp -r /usr/share/postfix-cluebringer-webui/webui/* /var/www/html/ && \
gunzip /tmp/policyd-db.mysql.gz && \
sed -i -e 's/TYPE=InnoDB/ENGINE=InnoDB/g' /tmp/policyd-db.mysql && \
chmod -R 0755 /hooks && \
chmod -R 0777 /var/www/html && \
chmod 0666 /var/log/cbpolicyd.log
EXPOSE 10031 8080 8443