diff --git a/shadowsocks/README.md b/shadowsocks/README.md index 5570e49..1053f5e 100644 --- a/shadowsocks/README.md +++ b/shadowsocks/README.md @@ -1,7 +1,7 @@ shadowsocks =========== -[![](https://badge.imagelayers.io/vimagick/shadowsocks:latest.svg)](https://imagelayers.io/?images=vimagick/shadowsocks:latest 'Get your own badge on imagelayers.io') +![](https://badge.imagelayers.io/vimagick/shadowsocks:latest.svg) [`shadowsocks`][1] is a secure socks5 proxy, designed to protect your Internet traffic. diff --git a/shadowsocks/libev/Dockerfile b/shadowsocks/libev/Dockerfile index ad2bfcc..24ba60c 100644 --- a/shadowsocks/libev/Dockerfile +++ b/shadowsocks/libev/Dockerfile @@ -8,14 +8,14 @@ MAINTAINER kev ENV SS_VER 2.2.2 ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev/archive/v$SS_VER.tar.gz ENV SS_DIR shadowsocks-libev-$SS_VER -ENV SS_DEP curl linux-headers build-base autoconf libtool openssl-dev +ENV SS_DEP autoconf build-base curl libtool linux-headers openssl-dev RUN apk add --update $SS_DEP \ && curl -sSL $SS_URL | tar xz \ - && cd $SS_DIR \ + && pushd $SS_DIR \ && ./configure \ && make install \ - && cd .. \ + && popd \ && rm -rf $SS_DIR \ && apk del --purge $SS_DEP \ && rm -rf /var/cache/apk/* diff --git a/shadowsocks/libev/README.md b/shadowsocks/libev/README.md index 8844c79..f661864 100644 --- a/shadowsocks/libev/README.md +++ b/shadowsocks/libev/README.md @@ -1,7 +1,7 @@ shadowsocks-libev ================= -[![](https://badge.imagelayers.io/vimagick/shadowsocks-libev:latest.svg)](https://imagelayers.io/?images=vimagick/shadowsocks-libev:latest 'Get your own badge on imagelayers.io') +![](https://badge.imagelayers.io/vimagick/shadowsocks-libev:latest.svg) `shadowsocks-libev` is a lightweight secured socks5 proxy for embedded devices and low end boxes. @@ -9,6 +9,20 @@ It is a port of shadowsocks created by @clowwindy maintained by @madeye and @lin Compared to `vimagick/shadowsocks`, `vimagick/shadowsocks-libev` uses less cpu/memory/disk. +## docker-compose.yml + +``` +shadowsocks: + image: vimagick/shadowsocks-libev + ports: + - "8388:8388" + environment: + - PASSWORD=9MLSpPmNt + restart: always +``` + +> Please choose a strong password to protect your server. + ## CPU/MEMORY ``` diff --git a/shadowsocks/libev/docker-compose.yml b/shadowsocks/libev/docker-compose.yml new file mode 100644 index 0000000..aa052da --- /dev/null +++ b/shadowsocks/libev/docker-compose.yml @@ -0,0 +1,7 @@ +shadowsocks: + image: vimagick/shadowsocks-libev + ports: + - "8388:8388" + environment: + - PASSWORD=9MLSpPmNt + restart: always