This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
squid:
|
squid:
|
||||||
image: ubuntu/squid
|
image: ubuntu/squid
|
||||||
ports:
|
network_mode: host
|
||||||
- "3128:3128"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./squid.conf:/etc/squid/squid.conf:ro
|
- ./squid.conf:/etc/squid/squid.conf:ro
|
||||||
- ./passwd:/etc/squid/passwd:ro
|
- ./passwd:/etc/squid/passwd:ro
|
||||||
extra_hosts:
|
|
||||||
- "host.docker.internal:host-gateway"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ acl authenticated proxy_auth REQUIRED
|
|||||||
http_access allow authenticated
|
http_access allow authenticated
|
||||||
http_access deny all
|
http_access deny all
|
||||||
|
|
||||||
cache_peer host.docker.internal parent 20171 0 no-query default
|
cache_peer 127.0.0.1 parent 20171 0 no-query default
|
||||||
never_direct allow all
|
never_direct allow all
|
||||||
|
|
||||||
http_port 3128
|
http_port 3128
|
||||||
|
|||||||
Reference in New Issue
Block a user