-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: "3.9"
services:
# ── Open proxy (no authentication) ────────────────────────────────────────
proxy:
build: .
image: socks5-proxy-go:latest
container_name: socks5-proxy-go
restart: unless-stopped
ports:
- "1080:1080"
environment:
PROXY_ADDR: "0.0.0.0:1080"
# Limit resources – a proxy rarely needs much CPU/RAM.
deploy:
resources:
limits:
cpus: "0.50"
memory: 64M
# ── Authenticated proxy (start with: docker compose --profile auth up) ─────
proxy-auth:
build: .
image: socks5-proxy-go:latest
container_name: socks5-proxy-go-auth
restart: unless-stopped
profiles: [auth]
ports:
- "1081:1080"
environment:
PROXY_ADDR: "0.0.0.0:1080"
PROXY_USER: "${PROXY_USER:-admin}"
PROXY_PASS: "${PROXY_PASS:-changeme}"
deploy:
resources:
limits:
cpus: "0.50"
memory: 64M