-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:18.04 | ||
|
||
MAINTAINER [email protected] | ||
|
||
# docker build -t ss:1.0 . | ||
# docker run -p host_port:container_port -d ss:1.0 | ||
|
||
# Install dependent packages. | ||
RUN apt update | ||
RUN apt install -y apt-utils vim curl net-tools iputils-ping ssh git make zip unattended-upgrades | ||
RUN unattended-upgrade -d | ||
|
||
RUN apt install -y python-pip | ||
RUN pip install setuptools | ||
RUN pip install git+https://github.com/shadowsocks/shadowsocks.git@master | ||
|
||
COPY config.json /etc/shadowsocks/config.json | ||
COPY start_ssserver.sh /root/start_ssserver.sh | ||
|
||
CMD /bin/bash -c /root/start_ssserver.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
# docker-ss | ||
# docker-ss | ||
1. Rename _config.json to config.json. | ||
2. Edit config.json, modify **"server_port"** and **"password"** field. | ||
3. Run command: | ||
``` | ||
>$ docker build -t ss:1.0 . | ||
>$ docker run -p host_port:container_port -d ss:1.0 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"server": "::", | ||
"server_port": ****, | ||
"local_address": "127.0.0.1", | ||
"local_port": 1080, | ||
"password": "********************", | ||
"timeout": 300, | ||
"method": "aes-256-gcm", | ||
"fast_open": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
ulimit -n 51200 | ||
/usr/local/bin/ssserver -c /etc/shadowsocks/config.json start |