export SS_PASSWORD="it's a secrect" SS_METHOD="chacha20-ietf-poly1305"
export SS_PORT=8388 KCP_PORT=4000
docker run -d --restart=unless-stopped \
-p ${SS_PORT}:8388 -p ${SS_PORT}:8388/udp -p ${KCP_PORT}:4000/udp \
-e "SS_CONFIG=-s 0.0.0.0 -p 8388 -m ${SS_METHOD} -k ${SS_PASSWORD}" \
-e 'KCP_CONFIG=-t 127.0.0.1:8388 -l :4000 -mode fast2 --quiet' \
-e 'KCP_FLAG=true' \
--name shadowsocks mritd/shadowsocks