1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/shadowvpn/README.md
2015-08-07 15:01:34 +08:00

48 lines
835 B
Markdown

ShadowVPN
=========
![](https://badge.imagelayers.io/vimagick/shadowvpn:latest.svg)
[`ShadowVPN`][1] is a fast, safe VPN based on libsodium.
## directory tree
```
~/fig/shadowvpn/
├── docker-compose.yml
└── server.conf
```
> Please change password in [server.conf][2] to protect your server.
## docker-compose.yml
```
shadowvpn:
image: vimagick/shadowvpn
ports:
- "1123:1123/udp"
volumes:
- "server.conf:/etc/shadowvpn/server.conf"
privileged: true
restart: always
```
## server
```
$ docker-compose up -d
```
## client
```
$ shadowvpn -c /etc/shadowvpn/client.conf -v
```
> Change settings in [client.conf][3].
[1]: https://shadowvpn.org/
[2]: https://github.com/clowwindy/ShadowVPN/blob/master/samples/server.conf
[2]: https://github.com/clowwindy/ShadowVPN/blob/master/samples/client.conf