Backup tuto3

This commit is contained in:
nemunaire 2019-03-10 19:32:38 +01:00 committed by Pierre-Olivier Mercier
commit 43b5f7ba94
9 changed files with 525 additions and 0 deletions

10
pkg/postfix/Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM alpine:3.7
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
RUN apk add --no-cache postfix
EXPOSE 25
CMD ["/usr/sbin/postfix", "-d"]
LABEL org.mobyproject.config='{"binds": ["/etc/resolv.conf:/etc/resolv.conf"], "capabilities": ["CAP_NET_BIND_SERVICE"]}'

1
pkg/postfix/build.yml Normal file
View file

@ -0,0 +1 @@
image: postfix

View file

@ -0,0 +1,13 @@
#!/bin/sh
set -e
if [ `which unbound-$1 2>/dev/null` ]; then
set -- unbound-"$@"
elif [ ! `which $1 2>/dev/null` ]; then
set -- unbound -dv "$@"
fi
unbound-anchor
exec "$@"