Sign inSign up

markovvn1/alpine-squid

By markovvn1

•Updated over 5 years ago

Small container for Alpine Linux + Squid Proxy Server (23.4MB only)

Image
1

176

markovvn1/alpine-squid repository overview

⁠Alpine-Squid

Small container for Alpine Linux + Squid Proxy Server (23.4MB only)

⁠Get the Image

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-compose

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
⁠Run

Use docker-config.yaml to run the image

docker-compose up -d
⁠Configuring

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.

⁠Proxy without password

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
⁠Shell access

Get a shell inside a already running container

docker exec -it docker_squid bash

Tag summary

Content type

Image

Digest

Size

9.8 MB

Last updated

over 5 years ago

docker pull markovvn1/alpine-squid