Small container for Alpine Linux + Squid Proxy Server (23.4MB only)
176
Small container for Alpine Linux + Squid Proxy Server (23.4MB only)
Pull it from docker hub
docker pull markovvn1/alpine-squid
Or build from source
git clone https://github.com/Markovvn1/alpine-squid.git
cd alpine-squid
docker build -t markovvn1/alpine-squid .
docker-config.yaml
version: '3.0'
services:
proxy_server:
image: markovvn1/alpine-squid
container_name: "docker_squid"
restart: always
environment:
WEBADMIN: admin
PASSWORD: 123456
ports:
- 3128:3128
- 3129:3129
volumes:
#- ./data/config:/etc/squid
#- ./data/cache:/var/cache/squid
#- /etc/hosts:/etc/hosts:ro
- /etc/localtime:/etc/localtime:ro
Use docker-config.yaml to run the image
docker-compose up -d
Mount /etc/squid to get access to configs. All configuration is automatically copied to /etc/squid when docker starts.
You can change login/password, ports or container name in docker-compose.yaml.
Mount /var/cache/squid to get cache.
To disable password you need to mount /etc/squid/squid.conf and modify it. You need to uncomment this lines:
# Allow to use proxy without authentication
# http_access allow localnet
# http_reply_access allow localnet
# icp_access allow localnet
# always_direct allow localnet
And comment this lines:
# Use proxy with authentication (.htpasswd) only
http_access allow authenticated localnet
http_reply_access allow authenticated localnet
icp_access allow authenticated localnet
always_direct allow authenticated localnet
Get a shell inside a already running container
docker exec -it docker_squid bash
Content type
Image
Digest
Size
9.8 MB
Last updated
over 5 years ago
docker pull markovvn1/alpine-squid