A Dockerfile with a configurable Squid forward proxy.
You'll want to customize the following command:
docker run -p 3128:3128 \
-e SQUID_USER=username \
-e SQUID_PASSWORD=password \
pagertree/docker-squid-forward-proxy:latest
Now navigate to http://localhost:3128 and you will see the squid proxy is running. You can then use it to proxy requests like so:
curl -x http://username:password@localhost:3128 https://statuscode.app/200