forked from jiangtiandao/ss-libev-kcptun-udp2raw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.3 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
version: '3'
services:
ss:
image: rheinmetal/ss-libev-docker
devices:
- "/dev/random:/dev/random"
environment:
DNS_ADDR: "114.114.114.114"
DNS_ADDR_2: "114.114.115.115"
METHOD: "aes-256-gcm"
sysctls:
- fs.file-max = 51200
- net.core.rmem_max = 67108864
- net.core.wmem_max = 67108864
- net.core.netdev_max_backlog = 250000
- net.core.somaxconn = 4096
- net.ipv4.tcp_syncookies = 1
- net.ipv4.tcp_tw_reuse = 1
- net.ipv4.tcp_tw_recycle = 0
- net.ipv4.tcp_fin_timeout = 30
- net.ipv4.tcp_keepalive_time = 1200
- net.ipv4.ip_local_port_range = 10000 65000
- net.ipv4.tcp_max_syn_backlog = 8192
- net.ipv4.tcp_max_tw_buckets = 5000
- net.ipv4.tcp_fastopen = 3
- net.ipv4.tcp_mem = 25600 51200 102400
- net.ipv4.tcp_rmem = 4096 87380 67108864
- net.ipv4.tcp_wmem = 4096 65536 67108864
- net.ipv4.tcp_mtu_probing = 1
- net.ipv4.tcp_congestion_control = hybla
kcptun:
image: xtaci/kcptun:v20170904
command: server -t ss:8388 -key "xxxxxxx" -mode fast2 -crypt aes-128 -dscp 46 -mtu 1300
ports:
- "10998:29900/udp"
udp2raw:
image: daocloud.io/rheinmetal/udp2raw:master-f9900ee
command: ./udp2raw -s -l 0.0.0.0:10998 -r 127.0.0.1:29900 -k "xxxxxxxxx" --raw-mode faketcp
network_mode: "host"