如何使用docker快速搭建Shadowsocks服务器

on 2016-01-19

前置条件:

搭建方法:

{% highlight bash %} mkdir conf vim conf/shadowsocks.json {% endhighlight %}

配置文件示例:

{
 "server":"0.0.0.0",
 "local_port":1080,
 "server_port":8388,
 "password":"MyPowerfulPassword",
 "timeout":300,
 "method":"aes-256-cfb"
}
  • 编写docker-compose.yml文件:

{% highlight bash %} ssp: build: . ports:

  • "8388:8388" volumes:
  • ./conf:/etc/shadowsocks restart: always {% endhighlight %}
  • docker-compose up -d