2026-09-26 11:37:19 +08:00
|
|
|
---
|
|
|
|
|
created: 2026-01-05
|
|
|
|
|
---
|
2026-01-05 13:03:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
squid:
|
|
|
|
|
image: sameersbn/squid
|
|
|
|
|
volumes:
|
|
|
|
|
- ./squid.conf:/etc/squid/squid.conf:ro
|
|
|
|
|
- squid_cache:/var/spool/squid
|
|
|
|
|
ports:
|
|
|
|
|
- "3128"
|
|
|
|
|
networks:
|
|
|
|
|
- proxy
|
|
|
|
|
|
|
|
|
|
nghttpx:
|
|
|
|
|
image: nghttpx/nghttpx
|
|
|
|
|
command: nghttpx -f /etc/nghttpx/nghttpx.conf
|
|
|
|
|
volumes:
|
|
|
|
|
- ./nghttpx.conf:/etc/nghttpx/nghttpx.conf:ro
|
|
|
|
|
environment:
|
|
|
|
|
- http_proxy=http://squid:3128
|
|
|
|
|
- https_proxy=http://squid:3128
|
|
|
|
|
- no_proxy=localhost,127.0.0.1,172.20.*
|
|
|
|
|
ports:
|
|
|
|
|
- "80"
|
|
|
|
|
networks:
|
|
|
|
|
- proxy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
squid_cache:
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
proxy:
|
|
|
|
|
external: true
|
|
|
|
|
name: npm
|