mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:18 +02:00
update squid
This commit is contained in:
parent
d8ba0ac07e
commit
188da40e75
@ -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/
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Dockerfile for squid-arm
|
||||
#
|
||||
|
||||
FROM arm32v7/alpine:3
|
||||
FROM alpine:3
|
||||
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user