Skip to content

Instantly share code, notes, and snippets.

@koistya
Last active February 28, 2019 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koistya/924f99671cf9123fb3966d7089593dfb to your computer and use it in GitHub Desktop.
Save koistya/924f99671cf9123fb3966d7089593dfb to your computer and use it in GitHub Desktop.
Shadowsocks Proxy Server on DigitalOcean https://m.do.co/c/eef302dbae9f
version: "3"
services:
shadowsocks:
image: shadowsocks/shadowsocks-libev:edge
ports:
- "8388:8388"
environment:
- METHOD=aes-256-cfb
- PASSWORD=XXX
restart: always
@koistya
Copy link
Author

koistya commented Feb 28, 2019

Create a new DO droplet, the minimum one ($5-10/month), using CentOS or Ubuntu as a base image. Ensure that Docker + Docker Compose are installed.

Log into your server, create docker-compose.yml file. Don't forget to replace XXX with your actual password :-) And launch it:

$ docker-compose up -d

Whenever you need to update Shadowsocks on the server, run this:

$ docker-compose pull
$ docker-compose up -d --force-recreate
$ docker image prune

On the client machine install Shadowsocks client, make it connect to your Shadowsocks proxy server, it will then be available as a Socks5 proxy on 127.0.0.1:1080.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment