Docker image for shadowsocks-rust server with build-in xray-plugin. All builds was made by GitHub Actions
${SHADOWSOCKS_VERSION}-${XRAY_PLUGIN_VERSION}
You can apply configuration by passing environment variables or mount your config directly to container
Variable | Default value | Description |
---|---|---|
HOST | mydomain.me |
Hostname for server |
SERVER_ADDR | 0.0.0.0:1080 |
Local address to listen on |
PASSWORD | password |
Shadowsocks password |
METHOD | chacha20-ietf-poly1305 |
Encryption method |
PLUGIN | xray-plugin |
Shadowsocks obfuscation plugin |
PLUGIN_OPTS | server |
Options for obfuscation plugin |
ARGS | Additional arguments for Shadowsocks |
Here is one-click example with Traefik router with automatic https certificate generation.
Please change domain, path and secrets for your needs and make sure that DNS was propagated for your domain, otherwise ssl certificate generation will be fail.
docker create network traefik
docker-compose up -d
Clients available for all modern platforms and should be similar for all of that
Here is json configration for shadowsocks-rust client for linux/macos:
{
"server": "mydomain.me",
"server_port": 443,
"local_port": 1080,
"password": "password",
"method": "chacha20-ietf-poly1305",
"plugin": "/usr/local/bin/xray-plugin",
"fast_open": true,
"mode": "tcp_only",
"no_delay": true,
"plugin_opts": "path=/xray;mux=8;host=mydomain.me;tls"
}