Last active
December 14, 2018 16:35
-
-
Save crazygit/9683ab0a795b70a3df7ebd586f81ab8d to your computer and use it in GitHub Desktop.
run shadowsocks-libev server with docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# 配置参考: | |
# https://github.com/shadowsocks/shadowsocks-libev/blob/master/docker/alpine/README.md | |
# 密码 | |
PASSWORD="your_password" | |
# 绑定到主机的端口号 | |
SERVER_PORT=8388 | |
# 加密方式 | |
ENCRYPT_METHOD="aes-256-cfb" | |
docker pull shadowsocks/shadowsocks-libev | |
docker run -e PASSWORD=$PASSWORD \ | |
-e METHOD=$ENCRYPT_METHOD \ | |
-p $SERVER_PORT:8388 \ | |
-p $SERVER_PORT:8388/udp \ | |
--name ss-server \ | |
-d shadowsocks/shadowsocks-libev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment