A proxy setup for development purposes using docker.
docker pull svettwer/dev-proxy
docker run --it --rm --name dev-proxy \
--publish 3128:3128 \
--volume <PATH_TO>/squid.conf:/etc/squid/squid.conf \
--volume /srv/docker/squid/cache:/var/spool/squid \
dev-proxy
or use
sh run.sh
The container ships with a preconfigured user to test proxy authentication. user: foobar password: foo
PROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dev-proxy)
wget -e use_proxy=yes -e http_proxy=http://foobar:foo@${PROXY_IP}:3128 google.de
Change squid.conf
.
See Squid config docs for options.
Config options of the base image can be found on Docker hub
To reload the config in a running dev-proxy container, use docker kill -s HUP dev-proxy
.
git clone https://github.com/svettwer/dev-proxy
cd dev-proxy
docker build . -t dev-proxy