1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-04-21 12:07:00 +02:00

update squid

This commit is contained in:
kev 2021-10-14 11:51:55 +08:00
parent d8ba0ac07e
commit 188da40e75
4 changed files with 41 additions and 21 deletions

View File

@ -12,24 +12,32 @@ including Windows and is licensed under the GNU GPL.
## docker-compose.yml ## docker-compose.yml
```yaml ```yaml
version: "3.8"
services:
squid: squid:
image: vimagick/squid image: vimagick/squid
ports: ports:
- "3128:3128/tcp" - "3128:3128/tcp"
- "3130:3130/udp" - "3130:3130/udp"
volumes:
- ./data/cache:/var/cache/squid
- ./data/log:/var/log/squid
stop_signal: SIGKILL
restart: unless-stopped restart: unless-stopped
``` ```
> You can mount `/etc/squid/squid.conf` file. > You can mount custom config file as `/etc/squid/squid.conf`.
## Up and Running ## Up and Running
```bash ```bash
# server # server
$ mkdir -p data/{cache,log}
$ chmod -R 777 data
$ docker-compose up -d $ docker-compose up -d
# client # client
$ curl -x https://127.0.0.1:3128 https://www.google.com/ $ curl -x 127.0.0.1:3128 ifconfig.co
``` ```
[1]: http://www.squid-cache.org/ [1]: http://www.squid-cache.org/

View File

@ -2,7 +2,7 @@
# Dockerfile for squid-arm # Dockerfile for squid-arm
# #
FROM arm32v7/alpine:3 FROM alpine:3
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation

View File

@ -1,6 +1,12 @@
version: "3.8"
services:
squid: squid:
image: easypi/squid-arm image: easypi/squid-arm
ports: ports:
- "3128:3128/tcp" - "3128:3128/tcp"
- "3130:3130/udp" - "3130:3130/udp"
volumes:
- ./data/cache:/var/cache/squid
- ./data/log:/var/log/squid
stop_signal: SIGKILL
restart: unless-stopped restart: unless-stopped

View File

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