Squid + Privoxy HTTP proxy based on Alpine linux
1.4K
A docker image with Squid and Privoxy based on Alpine Linux. Now it has Squid as well for caching and modifying requests.
As soon as you have several devices connected to your network and accessing Internet (TV, computers, tablets and smartphones), you're better off running a proxy to access the Internet. One proxy or 2 proxies cascaded?
Docker compose file for this container:
services:
squid-privoxy:
image: xptsp/squid-privoxy:latest
container_name: squid-privoxy
ports:
- 3128:3128 # Squid HTTP proxy server
- 3129:3129 # Squid Transparent HTTP server
- 3130:3130 # Squid Transparent HTTPS server
- 8118:8118 # Privoxy server
- 8080:8080 # Container WebUI
#environment:
# Uncomment next line to add privoxy-blocklist to crond (15min, daily, hourly, weekly, monthly)
#- UPDATE_BLOCKLIST=weekly
volumes:
- ./cache:/var/cache/squid
#- ./logs:/var/log/squid
#- ./privoxy:/etc/privoxy
#- ./squid:/etc/squid
restart: always
If Squid and Privoxy settings directories are mounted, any missing Squid and/or Privoxy files are copied into their respective directories. Existing configurations will NOT be overridden unless they are older than the default files in this container.
The privoxy-blocklist.conf file can be found at /etc/privoxy/privoxy-blocklist.conf. When environment variable UPDATE_BLOCKLIST is set, the script is run at container launch, as well as added to the crond tasks at the specified cron period (15min, daily, hourly, weekly, or monthly).
Content type
Image
Digest
sha256:346790bff…
Size
23.6 MB
Last updated
8 months ago
docker pull xptsp/squid-privoxy