A quick and easy Dockerised Tinyproxy, adapted from Daniel Middleton's original.
This version simplifies the startup procedure. Instead of passing an ACL on the command line and modifying the tinyproxy configuration file, it simply uses the file at
To configure Tinyproxy, mount your own
tinyproxy.conf at this location in the container. The
tinyproxy.conf file in the repository should be used as a base for creating your own file.
Note: the default
tinyproxy.confaccepts connections only from
127.0.0.1, which is the container itself, so you must use a custom
configuration file with additional
Allowdirectives to make the
In addition, this version uses a custom build of tinyproxy (see RateHighway/tinyproxy) that allows log files to be symlinks to device files. The default log file
/var/log/tinyproxy/tinyproxy.conf is a symlink to
/dev/stdout, which means that Tinyproxy will log to stdout without creating any log files that need to be managed.
Find it on GitHub.
Find it on DockerHub.
Running a new Tinyproxy container
docker run -d --name=tinyproxy \ -p 8888:8888 \ -v /your/tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf \ ratehighway/tinyproxy
http://tinyproxy.stats/ while connected to the proxy will display the Tinyproxy Stats page.
The default configuration will log to stdout.
Building the tinyproxy image:
docker build -t ratehighway/tinyproxy:latest .
Building the custom tinyproxy binary:
(cd tinyproxy-build && sh build.sh)