1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:32 +02:00
dockerfiles/shadowsocks/README.md

75 lines
1.8 KiB
Markdown
Raw Normal View History

2015-06-23 03:00:07 +02:00
shadowsocks
===========
2016-03-21 06:48:39 +02:00
name | size
-------------------------- | ---------------------------------------------------------------------------
[shadowsocks][1] | ![](https://badge.imagelayers.io/vimagick/shadowsocks:latest.svg)
[shadowsocks-libev][2] | ![](https://badge.imagelayers.io/vimagick/shadowsocks-libev:latest.svg)
[shadowsocks-arm][3] | ![](https://badge.imagelayers.io/vimagick/shadowsocks-arm:latest.svg)
[shadowsocks-libev-arm][4] | ![](https://badge.imagelayers.io/vimagick/shadowsocks-libev-arm:latest.svg)
2015-06-23 03:00:07 +02:00
2016-03-21 06:48:39 +02:00
[shadowsocks][5] is a secure socks5 proxy, designed to protect your Internet traffic.
2015-06-11 17:00:57 +02:00
2016-03-21 06:48:39 +02:00
> If you want to keep a secret, you must also hide it from yourself.
2015-06-11 17:00:57 +02:00
## docker-compose.yml
2015-12-04 04:40:29 +02:00
For Linux Server
2016-03-21 06:48:39 +02:00
```yaml
2015-09-16 10:08:42 +02:00
server:
image: vimagick/shadowsocks-libev
2015-06-11 17:00:57 +02:00
ports:
- "8388:8388"
environment:
2015-09-16 10:08:42 +02:00
- METHOD=chacha20
- PASSWORD=secret
restart: always
2015-12-04 04:40:29 +02:00
client:
image: vimagick/shadowsocks-libev
command: ss-local -s foobar.site -p 8388 -b 0.0.0.0 -l 1080 -k secret -m chacha20
ports:
- "1080:1080"
restart: always
```
For Raspberry Pi
2016-03-21 06:48:39 +02:00
```yaml
2015-09-16 10:08:42 +02:00
client:
2015-09-18 07:51:56 +02:00
image: vimagick/shadowsocks-libev-arm
2015-09-16 10:08:42 +02:00
ports:
- "1080:1080"
environment:
- SERVER_ADDR=foobar.site
- METHOD=chacha20
2015-06-11 17:00:57 +02:00
- PASSWORD=secret
restart: always
```
## server
2015-09-16 10:20:09 +02:00
I'm running shadowsocks server on Debian (jessie).
2015-06-11 17:00:57 +02:00
```
2015-09-16 10:08:42 +02:00
$ docker-compose up -d server
2015-06-11 17:00:57 +02:00
```
## client
2015-09-16 10:20:09 +02:00
I'm running shadowsocks client on Raspberry Pi 2.
2015-06-11 17:00:57 +02:00
```
2015-09-16 10:08:42 +02:00
$ docker-compose up -d client
2015-06-11 17:00:57 +02:00
```
[read more][2]
2016-03-21 06:48:39 +02:00
[1]: https://hub.docker.com/r/vimagick/shadowsocks/
[2]: https://hub.docker.com/r/vimagick/shadowsocks-libev/
[3]: https://hub.docker.com/r/vimagick/shadowsocks-arm/
[4]: https://hub.docker.com/r/vimagick/shadowsocks-libev-arm/
[5]: http://shadowsocks.org
[6]: https://github.com/shadowsocks/shadowsocks/wiki/Configuration-via-Config-File