Runs Squid 3 as a minimal transparent proxy.
docker pull thelebster/docker-squid-simple-proxy
docker run --name squid_proxy -d \
--restart=always \
--publish 3128:3128 -p 2222:22 \
--volume /var/spool/squid \
thelebster/docker-squid-simple-proxy
We are going to use "ncsa_auth" that allows Squid to read and authenticate user and password information from an NCSA httpd-style password file when using basic HTTP authentication.
docker run --name squid_proxy -d \
--restart=always \
--publish 3128:3128 -p 2222:22 \
-e SQUID_USER=qwerty \
-e SQUID_PASS=iddqd \
--volume /var/spool/squid \
thelebster/docker-squid-simple-proxy
Copy .env.sample
file to .env
and set the necessay varialbes SQUID_USER
, SQUID_PASS
and PORT
.
docker-compose up --build -d