feat: add socks5 proxy compose setup

This commit is contained in:
sherry committed 2026-08-05 03:48:24 -05:00
1 parent df67dd5e35
commit 649d12d446
2 files changed
+30

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# Copy this file to .env and adjust the values:
# cp .env.sample .env
PROXY_PORT=1080
# Client credentials (leave empty to run without authentication)
PROXY_USER=socks5user
PROXY_PASSWORD=change-me-strong-password
# true = require authentication, false = allow anonymous connections
REQUIRE_AUTH=true
# Optional: comma-separated client IPs allowed to connect (empty = allow all)
ALLOWED_IPS=
# Optional: regex of destination FQDNs allowed through the proxy (empty = allow all)
ALLOWED_DEST_FQDN=
TZ=Asia/Shanghai
+11
View File
@@ -0,0 +1,11 @@
services:
socks5:
image: serjs/go-socks5-proxy:latest
container_name: socks5
restart: unless-stopped
ports:
- "${PROXY_PORT}:${PROXY_PORT}"
env_file:
- .env
environment:
TZ: ${TZ:-Asia/Shanghai}