Git Product home page Git Product logo

docker-squid-auth's Introduction

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

docker-squid-auth's People

Contributors

fripoli avatar

Stargazers

Yingjie feng avatar

Watchers

 avatar

Forkers

dragfly combin mblp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.