Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
/ SSR-Docker Public archive

使用Docker部署ShadowsocksR服务端

License

Notifications You must be signed in to change notification settings

winterssy/SSR-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSR-Docker

使用Docker部署ShadowsocksR服务端,基于 Ubuntu18.04

由于 ShadowsocksR 年久失修,建议大家尽可能迁移使用 V2Ray 或者 Trojan

Actions Status

BBR加速

部分VPS厂商如搬瓦工的机器已默认开启BBR加速,你可执行 lsmod | grep bbr 命令查看,如果结果中有 tcp_bbr 的话表示已开启BBR,没有可手动执行以下命令开启。

$ echo "net.core.default_qdisc=fq" | sudo tee --append /etc/sysctl.conf
$ echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee --append /etc/sysctl.conf
$ sudo sysctl -p

安装Docker

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
$ sudo usermod -aG docker $USER

安装Docker Compose

$ compose_version=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
$ sudo curl -L "https://github.com/docker/compose/releases/download/${compose_version}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose

部署SSR-Docker

$ git clone https://github.com/winterssy/SSR-Docker.git ~/SSR-Docker
$ cd ~/SSR-Docker
$ docker-compose up -d

SSR-Docker管理命令

$ cd ~/SSR-Docker

启动 ShadowsocksR:

$ docker-compose start ssr

停止 ShadowsocksR:

$ docker-compose stop ssr

重启 ShadowsocksR:

$ docker-compose restart ssr

查看日志:

$ docker-compose logs -f ssr

About

使用Docker部署ShadowsocksR服务端

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published