mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-21 12:07:00 +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
|
## 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/
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user