Files
vault-para/100-project/Personal/Software/Nghttpx.md
T
2025-12-29 13:38:39 +08:00

37 lines
634 B
Markdown
Executable File

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