Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy, a proxy server). While Polipo was designed to be used by one person or a small group of people, there is nothing that prevents it from being used by a larger group.
version: "3"
services:
polipo:
image: vank3f3/polipo
command:
proxyAddress=0.0.0.0
proxyPort=8123
authCredentials=username:password
allowedPorts=1-65535
tunnelAllowedPorts=1-65525
#socksParentProxy=1.2.3.4:8123
ports:
- "8123:8123"
restart: always
$ docker-compose up -d
OR
$ docker run -d --restart=always --name=polipo -p 8123:8123 vank3f3/polipo proxyAddress=0.0.0.0 authCredentials=username:password
More Parameter use
$ docker run --rm vank3f3/polipo --help
$ curl -x http://username:password@server:8123 https://www.youtube.com/
$ wget -e use_proxy=yes -e proxy-user=username -e proxy-password=password -e http_proxy=server:8123 http://cachefly.cachefly.net/100mb.test