https://github.com/reddec/squid
Docker image for Squid3 with or without basic auth
https://github.com/reddec/squid
Last synced: over 1 year ago
JSON representation
Docker image for Squid3 with or without basic auth
- Host: GitHub
- URL: https://github.com/reddec/squid
- Owner: reddec
- License: mit
- Created: 2014-12-04T08:26:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-07T16:47:10.000Z (about 11 years ago)
- Last Synced: 2025-03-09T00:06:40.778Z (over 1 year ago)
- Language: Shell
- Homepage: https://registry.hub.docker.com/u/reddec/squid/
- Size: 184 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
squid
=====
Docker (at least 1.3) image for Squid3 with or without basic auth
Tested on Ubuntu 14.04 x64 LTS
Install scrips:
**No auth**
bash <(curl https://raw.githubusercontent.com/reddec/squid/master/install/install-no-auth.sh)
**With basic auth**
bash <(curl https://raw.githubusercontent.com/reddec/squid/master/install/install-with-auth.sh)
Location for custom configuration files:
/etc/squid-[no]auth/*.conf
----------
Build
=====
# With basic authentication
#### Create containers
```bash
sudo docker create --name squid-auth -v /etc/squid-passwords:/passowrds -p 3128:3128 reddec/squid auth
```
##### Add users. Required `apache2-utils`
```bash
sudo htpasswd -c /etc/squid-passwords/keys
```
##### Add upstart script
```bash
sudo curl https://raw.githubusercontent.com/reddec/squid/master/services/squid3-auth.conf > /etc/init/squid3-auth.conf
```
##### Start service
```bash
sudo service squid3-auth start
```
# Without authentication
##### Create containers
```bash
sudo docker create --name squid-noauth -p 3128:3128 reddec/squid noauth
```
##### Add upstart script
```bash
sudo curl https://raw.githubusercontent.com/reddec/squid/master/services/squid3-noauth.conf >/etc/init/squid3-noauth.conf
```
##### Start service
```bash
sudo service squid3-noauth start
```