Docker image of squid based on a bookworm debian-slim image.
The Goal of this repo is to build a debian based docker running always the last version of squid release.
A recent security Audit was made on Squid showing multiple vulnerabilities. Most of them are not resolved yet.
https://github.com/MegaManSec/Squid-Security-Audit
Thanks to the work of squid team some of them are patched on recent releases 6.X but most linux distro do not have a recent squid package available.
The goal of this builds is to provide a simple running docker image resolving security issues patched on new squid releases.
It's recommanded to use docker compose to run this application
Use the provided docker-compose.yml or create docker-compose.yml
file:
services:
squid:
container_name: squid
image: misterbabou/squid:latest
restart: unless-stopped
ports:
- 3128:3128
environment:
#- LOGROTATE_RETENTION=30 #Days retention for squid log
volumes:
- ./conf:/conf
- ./cache:/var/spool/squid
- ./log:/var/log/squid
Run the application
docker-compose up -d
change the default configuration in ./conf/squid.conf
docker exec squid bash -c "/usr/sbin/squid -f ${SQUID_CONF} -k parse"
docker exec squid bash -c "/usr/sbin/squid -f ${SQUID_CONF} -k reconfigure"
✔️ Logrotate log files (added in 6.9.1)