Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update quickstart refs to squid3 from squid #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Start Squid using:
```bash
docker run --name squid -d --restart=always \
--publish 3128:3128 \
--volume /srv/docker/squid/cache:/var/spool/squid \
--volume /srv/docker/squid/cache:/var/spool/squid3 \
sameersbn/squid:3.5.27
```

Expand All @@ -81,13 +81,13 @@ You can customize the launch command of the Squid server by specifying arguments
```bash
docker run --name squid -it --rm \
--publish 3128:3128 \
--volume /srv/docker/squid/cache:/var/spool/squid \
--volume /srv/docker/squid/cache:/var/spool/squid3 \
sameersbn/squid:3.5.27 -h
```

## Persistence

For the cache to preserve its state across container shutdown and startup you should mount a volume at `/var/spool/squid`.
For the cache to preserve its state across container shutdown and startup you should mount a volume at `/var/spool/squid3`.

> *The [Quickstart](#quickstart) command already mounts a volume for persistence.*

Expand All @@ -105,8 +105,8 @@ Squid is a full featured caching proxy server and a large number of configuratio
```bash
docker run --name squid -d --restart=always \
--publish 3128:3128 \
--volume /path/to/squid.conf:/etc/squid/squid.conf \
--volume /srv/docker/squid/cache:/var/spool/squid \
--volume /path/to/squid.conf:/etc/squid3/squid.conf \
--volume /srv/docker/squid/cache:/var/spool/squid3 \
sameersbn/squid:3.5.27
```

Expand Down Expand Up @@ -138,13 +138,13 @@ ENV http_proxy=http://172.17.0.1:3128 \

## Logs

To access the Squid logs, located at `/var/log/squid/`, you can use `docker exec`. For example, if you want to tail the access logs:
To access the Squid logs, located at `/var/log/squid3/`, you can use `docker exec`. For example, if you want to tail the access logs:

```bash
docker exec -it squid tail -f /var/log/squid/access.log
docker exec -it squid tail -f /var/log/squid3/access.log
```

You can also mount a volume at `/var/log/squid/` so that the logs are directly accessible on the host.
You can also mount a volume at `/var/log/squid3/` so that the logs are directly accessible on the host.

# Maintenance

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Squid:
ports:
- "3128:3128"
volumes:
- /srv/docker/squid/cache:/var/spool/squid
- /srv/docker/squid/cache:/var/spool/squid3
restart: always