2016-04-03 10:13:05 +08:00
|
|
|
squid
|
|
|
|
=====
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
[Squid][1] is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and
|
|
|
|
more. It reduces bandwidth and improves response times by caching and reusing
|
|
|
|
frequently-requested web pages. Squid has extensive access controls and makes a
|
|
|
|
great server accelerator. It runs on most available operating systems,
|
|
|
|
including Windows and is licensed under the GNU GPL.
|
|
|
|
|
|
|
|
## docker-compose.yml
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
squid:
|
|
|
|
image: vimagick/squid
|
|
|
|
ports:
|
2020-04-23 15:07:52 +08:00
|
|
|
- "3128:3128/tcp"
|
|
|
|
- "3130:3130/udp"
|
|
|
|
restart: unless-stopped
|
2016-04-03 10:13:05 +08:00
|
|
|
```
|
|
|
|
|
2020-04-23 15:07:52 +08:00
|
|
|
> You can mount `/etc/squid/squid.conf` file.
|
2016-04-05 13:10:51 +08:00
|
|
|
|
2016-04-03 10:13:05 +08:00
|
|
|
## Up and Running
|
|
|
|
|
2020-04-23 15:07:52 +08:00
|
|
|
```bash
|
2016-04-03 10:13:05 +08:00
|
|
|
# server
|
|
|
|
$ docker-compose up -d
|
|
|
|
|
|
|
|
# client
|
2020-04-23 15:07:52 +08:00
|
|
|
$ curl -x https://127.0.0.1:3128 https://www.google.com/
|
2016-04-03 10:13:05 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
[1]: http://www.squid-cache.org/
|