1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/squid
2021-10-14 18:20:57 +08:00
..
arm update 2021-10-14 18:20:57 +08:00
docker-compose.yml update squid 2021-10-14 11:51:55 +08:00
docker-stack.yml update squid 2020-04-23 15:19:28 +08:00
Dockerfile update 2021-10-14 18:20:57 +08:00
README.md update squid 2021-10-14 11:51:55 +08:00

squid

Squid 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

version: "3.8"
services:
  squid:
    image: vimagick/squid
    ports:
      - "3128:3128/tcp"
      - "3130:3130/udp"
    volumes:
      - ./data/cache:/var/cache/squid
      - ./data/log:/var/log/squid
    stop_signal: SIGKILL
    restart: unless-stopped

You can mount custom config file as /etc/squid/squid.conf.

Up and Running

# server
$ mkdir -p data/{cache,log}
$ chmod -R 777 data
$ docker-compose up -d

# client
$ curl -x 127.0.0.1:3128 ifconfig.co