1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 09:18:43 +00:00

update dsvpn

This commit is contained in:
kev 2021-10-22 16:25:34 +08:00
parent 9f0a01423c
commit 0a586f067e
3 changed files with 27 additions and 23 deletions

@ -1,4 +1,4 @@
FROM alpine AS builder FROM alpine:3 AS builder
ENV DSVPN_VERSION=0.1.4 ENV DSVPN_VERSION=0.1.4
ENV DSVPN_URL=https://github.com/jedisct1/dsvpn/archive/${DSVPN_VERSION}.tar.gz ENV DSVPN_URL=https://github.com/jedisct1/dsvpn/archive/${DSVPN_VERSION}.tar.gz
@ -13,7 +13,7 @@ RUN set -xe \
# Dockerfile for dsvpn # Dockerfile for dsvpn
# #
FROM alpine FROM alpine:3
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache iproute2 RUN apk add --no-cache iproute2

@ -9,16 +9,18 @@ docker-compose.yml
------------------ ------------------
```yaml ```yaml
dsvpn: version: "3.8"
image: vimagick/dsvpn services:
command: server vpn.key auto 443 dsvpn:
ports: image: vimagick/dsvpn
- "443:443" command: server vpn.key auto 443
volumes: ports:
- ./data:/etc/dsvpn - "443:443"
tty: true volumes:
privileged: true - ./data:/etc/dsvpn
restart: unless-stopped tty: true
privileged: true
restart: unless-stopped
``` ```
server server
@ -35,7 +37,7 @@ client
------ ------
```bash ```bash
$ sudo dsvpn vpn.key 1.2.3.4 1959 $ sudo dsvpn vpn.key 1.2.3.4 443
$ ifconfig tun0 $ ifconfig tun0
$ ping 192.168.192.254 $ ping 192.168.192.254
``` ```

@ -1,10 +1,12 @@
dsvpn: version: "3.8"
image: vimagick/dsvpn services:
command: server vpn.key auto 443 dsvpn:
ports: image: vimagick/dsvpn
- "443:443" command: server vpn.key auto 443
volumes: ports:
- ./data:/etc/dsvpn - "443:443"
tty: true volumes:
privileged: true - ./data:/etc/dsvpn
restart: unless-stopped tty: true
privileged: true
restart: unless-stopped