Skip to content

A proxy setup for development purposes using docker

Notifications You must be signed in to change notification settings

svettwer/dev-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-proxy

A proxy setup for development purposes using docker.

Get it

docker pull svettwer/dev-proxy

Run it

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

Use it

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

Configure it

Change squid.conf. See Squid config docs for options.
Config options of the base image can be found on Docker hub

Reconfigure it

To reload the config in a running dev-proxy container, use docker kill -s HUP dev-proxy.

Build it yourself

git clone https://github.com/svettwer/dev-proxy
cd dev-proxy
docker build . -t dev-proxy

About

A proxy setup for development purposes using docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published