d373ec829ca753ec224bf73f6442b69289345860
Privoxy Docker
Dự án này cung cấp một Docker image cho Privoxy, có thể triển khai dễ dàng bằng Docker Compose.
Nội dung docker-compose.yml
services:
privoxy:
image: git.thuanle.me/public/privoxy-docker:latest
container_name: privoxy
ports:
- "8118:8118"
volumes:
- ./privoxy:/etc/privoxy
user: "1000:1000" # 👈 Set user theo số
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true" # Cho phép Watchtower tự động cập nhật container này
Hướng dẫn cấu hình
-
Tạo thư mục cấu hình:
Tạo thư mục
privoxytrong cùng thư mục với filedocker-compose.ymlđể lưu cấu hình tùy chỉnh của Privoxy.mkdir -p privoxy -
Chỉnh sửa cấu hình Privoxy:
-
Tạo file
privoxy/configvới cấu hình mặc địnhlisten-address 0.0.0.0:8118 toggle 1 enable-remote-toggle 0 enable-edit-actions 0 enforce-blocks 1 buffer-limit 4096 logfile /dev/stdout -
Hoặc copy file cấu hình mẫu từ container (nếu chưa mount config folder):
docker cp privoxy:/etc/privoxy/config ./privoxy/config
-
-
Chạy dịch vụ:
docker-compose up -d -
Truy cập proxy:
- Proxy sẽ lắng nghe tại
localhost:8118. - Cấu hình trình duyệt hoặc thiết bị sử dụng HTTP Proxy với địa chỉ trên.
- Proxy sẽ lắng nghe tại
Thông tin thêm
- Image được build định kỳ hàng tuần và hỗ trợ đa kiến trúc (amd64, arm64).
- Để build hoặc push image, xem file build-docker.yml.
Description
Languages
Dockerfile
100%