-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
39 lines (36 loc) · 1.03 KB
/
docker-compose.yml
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
39
services:
cfw-proxy:
environment:
# ⚠️ Required:
# Make sure change this to your host's public address
- PROXY_USERNAME=awesome-username
# ⚠️ Required:
# You can use `openssl rand -base64 8` to generate a secure password
- PROXY_PASSWORD=super-secret-password
# Optional:
- SHADOWSOCKS_CIPHER=AES-256-CFB
#- DNS=1.1.1.2, 1.0.0.2, 2606:4700:4700::1112, 2606:4700:4700::1112
- DNS_PROFILE=MALWARE-ONLY # DEFAULT | MALWARE-ONLY | MALWARE-AND-ADULT
- MTU=1300
#- FAST_ENDPOINT=true
image: ghcr.io/shahradelahi/cfw-proxy
container_name: cfw-proxy
restart: unless-stopped
privileged: true
volumes:
- /lib/modules:/lib/modules
- persist-data:/data
ports:
- "1080:1080"
- "8080:8080"
- "8338:8338"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=0
volumes:
persist-data:
driver: local