@@ -0,0 +1,11 @@
|
|||||||
|
services:
|
||||||
|
squid:
|
||||||
|
image: ubuntu/squid
|
||||||
|
ports:
|
||||||
|
- "3128:3128"
|
||||||
|
volumes:
|
||||||
|
- ./squid.conf:/etc/squid/squid.conf:ro
|
||||||
|
- /opt/data/squid/passwd:/etc/squid/passwd:ro
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
restart: unless-stopped
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/external/passwd
|
||||||
|
acl authenticated proxy_auth REQUIRED
|
||||||
|
http_access allow authenticated
|
||||||
|
http_access deny all
|
||||||
|
|
||||||
|
cache_peer host.docker.internal parent 20171 0 no-query default
|
||||||
|
never_direct allow all
|
||||||
|
|
||||||
|
http_port 3128
|
||||||
Reference in New Issue
Block a user