mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-03 13:21:49 +02:00
update ShadowVPN
This commit is contained in:
parent
e5da6317a8
commit
4cbf4617ed
@ -2,15 +2,14 @@
|
||||
# Dockerfile for ShadowVPN
|
||||
#
|
||||
|
||||
FROM debian:jessie
|
||||
FROM alpine
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y automake \
|
||||
build-essential \
|
||||
RUN apk add -U autoconf \
|
||||
automake \
|
||||
build-base \
|
||||
gawk \
|
||||
git \
|
||||
net-tools \
|
||||
iptables \
|
||||
libtool \
|
||||
&& git clone --recursive https://github.com/clowwindy/ShadowVPN.git \
|
||||
@ -20,14 +19,13 @@ RUN apt-get update \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -rf ShadowVPN \
|
||||
&& apt-get purge -y --auto-remove automake \
|
||||
build-essential \
|
||||
&& apk del autoconf \
|
||||
automake \
|
||||
build-base \
|
||||
gawk \
|
||||
git \
|
||||
libtool
|
||||
|
||||
EXPOSE 1123/udp
|
||||
VOLUME /etc/shadowvpn
|
||||
|
||||
CMD shadowvpn -c /etc/shadowvpn/server.conf
|
||||
|
||||
|
33
shadowvpn/Dockerfile.debian
Normal file
33
shadowvpn/Dockerfile.debian
Normal file
@ -0,0 +1,33 @@
|
||||
#
|
||||
# Dockerfile for ShadowVPN
|
||||
#
|
||||
|
||||
FROM debian:jessie
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y automake \
|
||||
build-essential \
|
||||
gawk \
|
||||
git \
|
||||
net-tools \
|
||||
iptables \
|
||||
libtool \
|
||||
&& git clone --recursive https://github.com/clowwindy/ShadowVPN.git \
|
||||
&& cd ShadowVPN \
|
||||
&& ./autogen.sh \
|
||||
&& ./configure --enable-static --sysconfdir=/etc \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -rf ShadowVPN \
|
||||
&& apt-get purge -y --auto-remove automake \
|
||||
build-essential \
|
||||
gawk \
|
||||
git \
|
||||
libtool
|
||||
|
||||
EXPOSE 1123/udp
|
||||
VOLUME /etc/shadowvpn
|
||||
|
||||
CMD shadowvpn -c /etc/shadowvpn/server.conf
|
||||
|
@ -1,17 +1,20 @@
|
||||
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
|
||||
└── shadowvpn/
|
||||
├── server.conf
|
||||
├── server_down.sh
|
||||
└── server_up.sh
|
||||
└── server.conf
|
||||
```
|
||||
|
||||
> Please change password in [server.conf][2] to protect your server.
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```
|
||||
@ -20,7 +23,7 @@ shadowvpn:
|
||||
ports:
|
||||
- "1123:1123/udp"
|
||||
volumes:
|
||||
- "shadowvpn:/etc/shadowvpn"
|
||||
- "server.conf:/etc/shadowvpn/server.conf"
|
||||
privileged: true
|
||||
restart: always
|
||||
```
|
||||
@ -37,4 +40,8 @@ $ docker-compose up -d
|
||||
$ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user