docker pull postfwd/postfwd:stable
docker run -it -p 127.0.0.1:10040:10040 postfwd/postfwd:stable
version: '2'
services:
postfwd:
image: postfwd/postfwd:stable
restart: always
ports:
# Modify interface and port below if required!
- 127.0.0.1:10040:10040
docker-compose up
git clone https://github.com/postfwd/postfwd --branch master --single-branch postfwd
wget https://postfwd.org/postfwd-latest.tar.gz && gzip -dc postfwd-latest.tar.gz | tar -xf - && rm postfwd-latest.tar.gz
docker build --no-cache --pull -f docker/Dockerfile-autobuild -t postfwd:mybuild .
docker run -it postfwd:mybuild
/path/to/ruleset
# use 'postfwd1' or 'postfwd2' to switch between versions
# go to http://postfwd.org/versions.html for more info
PROG=postfwd1
# port for postfwd
PORT=10040
# configuration file
CONF=postfwd.cf
# request cache in seconds. use '0' to disable
CACHE=60
# additional arguments, see postfwd -h or man page for more
EXTRA=--no_parent_dns_cache --noidlestats --summary=600
docker run -v /path/to/ruleset:/etc/postfwd/postfwd.cf:ro -e PROG=postfwd2 -it postfwd:stable
docker run -v /path/to/ruleset:/etc/postfwd/postfwd.cf:ro -p 127.0.0.1:10040:10040 -e CACHE=0 -e EXTRA="-v" -it postfwd:stable
#
# docker-compose.yml
#
version: '2'
services:
postfwd:
image: postfwd/postfwd:stable
environment:
- PROG=postfwd2
- CACHE=0
- EXTRA=-vv --no_parent_dns_cache --noidlestats --summary=600
restart: always
ports:
- 127.0.0.1:10040:10040
volumes:
- /path/to/ruleset:/etc/postfwd/postfwd.cf:ro