Add README.md for Privoxy Docker setup

This commit is contained in:
thuanle
2025-07-11 12:10:47 +07:00
parent 4c76a6fd32
commit 3100015157
2 changed files with 52 additions and 8 deletions

52
README.md Normal file
View File

@@ -0,0 +1,52 @@
# 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`
```yaml
services:
privoxy:
image: git.thuanle.me/public/privoxy-docker:latest
container_name: privoxy
ports:
- "8118:8118"
volumes:
- ./privoxy:/etc/privoxy
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
1. **Tạo thư mục cấu hình:**
Tạo thư mục `privoxy` trong cùng thư mục với file `docker-compose.yml` để lưu cấu hình tùy chỉnh của Privoxy.
```sh
mkdir -p privoxy
```
2. **Chỉnh sửa cấu hình Privoxy:**
- Copy file cấu hình mẫu từ container (nếu cần):
```sh
docker cp privoxy:/etc/privoxy/config ./privoxy/config
```
- Hoặc tự tạo file `config` trong thư mục `privoxy`.
3. **Chạy dịch vụ:**
```sh
docker-compose up -d
```
4. **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.
## 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 `.gitea/workflows/build-docker.yml`.

View File

@@ -1,8 +0,0 @@
services:
privoxy:
image: git.thuanle.me/public/privoxy-docker:latest
restart: unless-stopped
ports:
- "8118:8118"
volumes:
- ./config:/etc/privoxy