docker pull postfwd/postfwd:stable
docker run -it 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 -t postfwd:stable .
docker run -it postfwd:stable
docker-compose build --no-cache --pull
docker-compose up
/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 -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