{
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbounds": [
{
"tag": "proxy-http",
"port": 10801,
"listen": "0.0.0.0",
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": false
}
},
{
"tag": "proxy",
"port": 10802,
"listen": "0.0.0.0",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "your-server-address",
"port": your-service-port,
"users": [
{
"id": "your-service-uuid",
"alterId": 0,
"email": "[email protected]",
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": false
},
"wsSettings": {}
},
"mux": {
"enabled": false,
"concurrency": -1
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api"
}
]
}
}
Modify the your-server-address, your-service-port, and your-service-uuid field values in the configuration.
docker run -d --name proxy -v config.json:/app/configs/config.json -p 10801:10801 -p 10802:10802 zhufuyi/proxy:latest run -c /app/configs/config.json
The docker-compose .yml contents are as follows:
version: '3.7'
services:
network-proxy:
restart: always
image: zhufuyi/proxy:latest
container_name: proxy
command: ["run", "-c", "/app/configs/config.json"]
ports:
# http proxy port
- 10801:10801
# socks proxy port
- 10802:10802
volumes:
- $PWD/configs/config.json:/app/configs/config.json
network_mode: host
running service: docker-copose up -d
Content type
Image
Digest
sha256:6987ee6cd…
Size
25.1 MB
Last updated
over 2 years ago
docker pull zhufuyi/proxy