Skip to content

fripoli/docker-squid-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-squid-auth

Squid running on docker with authentication

Clone this repo

git clone https://github.com/fripoli/docker-squid-auth.git

Create a squid-passwd file inside the cloned folder

cd docker-squid-auth
sudo yum install httpd-tools
sudo htpasswd -c squid-passwd username_you_like

Build docker image

sudo yum install -y docker
sudo service docker start
docker build --tag xico/squid .

Option 1 - Run docker directly

sudo docker run -d -p 3128:3128 xico/squid:latest

Option 2 - Run docker compose

sudo docker-compose up

Option 3 - To run in the background

sudo docker-compose start

Check docker containers running

sudo docker ps

Check squid log - assuming the name of the container dockersquidauth_squid_1

sudo docker exec -it dockersquidauth_squid_1 tail -f /var/log/squid3/access.log

About

Squid running on docker with authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published