Skip to content

Instantly share code, notes, and snippets.

@avin
Last active July 1, 2022 19:54
Show Gist options
  • Save avin/ec3a2d562e5581f2ba87162230aaa528 to your computer and use it in GitHub Desktop.
Save avin/ec3a2d562e5581f2ba87162230aaa528 to your computer and use it in GitHub Desktop.
Shadowsocks quick setup
{
"server": "myserver.com",
"server_port": 10777,
"password": "ZMv5HNQ77SEkekvLJd8WYf8sRd4Z2",
"method": "chacha20-ietf-poly1305",
"local_address": "127.0.0.1",
"local_port": 15080
}
{
"server":"0.0.0.0",
"server_port":10777,
"password":"ZMv5HNQ77SEkekvLJd8WYf8sRd4Z2",
"timeout":300,
"method":"chacha20-ietf-poly1305",
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp"
}
version: "3.8"
services:
shadowsocks-server:
image: ghcr.io/shadowsocks/ssserver-rust:latest
ports:
- 10777:10777
- 10777:10777/udp
volumes:
- ./config.json:/etc/shadowsocks-rust/config.json
restart: always
container_name: ssserver
[Unit]
Description=shadowsocks-docker
Requires=docker.service
After=docker.service
[Service]
Restart=always
WorkingDirectory=/opt/shadowsocks/
# Remove old containers, network and volumes
ExecStartPre=/usr/local/bin/docker-compose -f docker-compose.yml down -v
#ExecStartPre=-/bin/bash -c 'docker network rm docker_jfrog_net'
#ExecStartPre=-/bin/bash -c 'docker ps -aqf "name=3proxy-main" | xargs docker rm'
# Compose up
ExecStart=/usr/local/bin/docker-compose -f docker-compose.yml up
# Compose down, remove containers
ExecStop=/usr/local/bin/docker-compose -f docker-compose.yml down
[Install]
WantedBy=multi-user.target
Quiet.exe "c:\utils\shadowsocks\sslocal.exe -c c:\utils\shadowsocks\client-config.json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment