diff --git a/README.md b/README.md index 3984dad..4927c0d 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ dockerfiles - [x] shadowsocks-libev-arm :+1: - [x] shadowvpn - [x] snort :beetle: +- [x] squid - [x] swarm-arm - [x] taskd - [x] tinc :+1: diff --git a/squid/Dockerfile b/squid/Dockerfile new file mode 100644 index 0000000..7176316 --- /dev/null +++ b/squid/Dockerfile @@ -0,0 +1,14 @@ +# +# Dockerfile for squid +# + +FROM alpine +MAINTAINER kev + +RUN set -xe \ + && apk add -U squid \ + && rm -rf /var/cache/apk/* + +EXPOSE 3128 3130 + +ENTRYPOINT ["/usr/sbin/squid", "-NYCd1"] diff --git a/squid/README.md b/squid/README.md new file mode 100644 index 0000000..3f8c0f4 --- /dev/null +++ b/squid/README.md @@ -0,0 +1,37 @@ +squid +===== + +![](https://badge.imagelayers.io/vimagick/squid:latest.svg) + +[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: + - "3128:3128" + - "3130:3130" + ulimits: + nofile: + soft: 65535 + hard: 65535 + restart: always +``` + +## Up and Running + +``` +# server +$ docker-compose up -d + +# client +$ curl -x https://localhost:3128 https://www.google.com/ +``` + +[1]: http://www.squid-cache.org/ diff --git a/squid/docker-compose.yml b/squid/docker-compose.yml new file mode 100644 index 0000000..37834a9 --- /dev/null +++ b/squid/docker-compose.yml @@ -0,0 +1,10 @@ +squid: + image: vimagick/squid + ports: + - "3128:3128" + - "3130:3130" + ulimits: + nofile: + soft: 65535 + hard: 65535 + restart: always