update squid

This commit is contained in:
kev 2021-10-14 11:51:55 +08:00
orang tua d8ba0ac07e
melakukan 188da40e75
4 mengubah file dengan 41 tambahan dan 21 penghapusan

Melihat File

@ -12,24 +12,32 @@ including Windows and is licensed under the GNU GPL.
## docker-compose.yml
```yaml
squid:
image: vimagick/squid
ports:
- "3128:3128/tcp"
- "3130:3130/udp"
restart: unless-stopped
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 `/etc/squid/squid.conf` file.
> You can mount custom config file as `/etc/squid/squid.conf`.
## Up and Running
```bash
# server
$ mkdir -p data/{cache,log}
$ chmod -R 777 data
$ docker-compose up -d
# 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/

Melihat File

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

Melihat File

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

Melihat File

@ -1,6 +1,12 @@
squid:
image: vimagick/squid
ports:
- "3128:3128/tcp"
- "3130:3130/udp"
restart: unless-stopped
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