Quickly set up a Squid proxy server with basic authentication using Docker and Docker Compose.
-
Prerequisites: Ensure Docker and Docker Compose are installed.
-
Clone the Repo:
git clone https://github.com/sertione/squid-alpine.git
-
Configure Credentials: In
docker-compose.yml
, setPROXY_USER
andPROXY_PASSWORD
to your desired credentials. Optionally, adjust the port. -
Start the Proxy:
docker-compose up -d --build
-
Use the Proxy: Configure your application with the proxy URL:
http://your_username:your_password@your_server_ip:8084
Replace your_username
, your_password
, and your_server_ip
with your actual user credentials and server IP. Adjust 8084
if you've changed the default port.