separated components
This commit is contained in:
15
postfix/Dockerfile
Normal file
15
postfix/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# syntax=docker/dockerfile:1.3-labs
|
||||
FROM ubuntu:20.04
|
||||
# install apt packages
|
||||
RUN <<EOF
|
||||
apt-get update -y
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
export TZ=Europe/Berlin
|
||||
apt-get install -y tzdata postfix spampd wget xz-utils
|
||||
apt-get autoclean
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
|
||||
EOF
|
||||
WORKDIR /root
|
||||
EXPOSE 25
|
||||
VOLUME /var/spool/postfix
|
||||
ENTRYPOINT ["/usr/sbin/postmulti -i %i -p start"]
|
||||
15
postfix/docker-compose.yml
Normal file
15
postfix/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
version: '3'
|
||||
services:
|
||||
postfix:
|
||||
image: postfix:latest
|
||||
container_name: postfix
|
||||
restart: always
|
||||
networks:
|
||||
- kopano
|
||||
volumes:
|
||||
- ~/kopano/postfix/etc:/etc/postfix
|
||||
- spool:/var/spool/postfix
|
||||
networks:
|
||||
- kopano
|
||||
volumes:
|
||||
- spool:
|
||||
Reference in New Issue
Block a user