mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 18:06:36 +02:00
update dsvpn
This commit is contained in:
parent
9f0a01423c
commit
0a586f067e
@ -1,4 +1,4 @@
|
||||
FROM alpine AS builder
|
||||
FROM alpine:3 AS builder
|
||||
|
||||
ENV DSVPN_VERSION=0.1.4
|
||||
ENV DSVPN_URL=https://github.com/jedisct1/dsvpn/archive/${DSVPN_VERSION}.tar.gz
|
||||
@ -13,7 +13,7 @@ RUN set -xe \
|
||||
# Dockerfile for dsvpn
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
FROM alpine:3
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN apk add --no-cache iproute2
|
||||
|
@ -9,16 +9,18 @@ docker-compose.yml
|
||||
------------------
|
||||
|
||||
```yaml
|
||||
dsvpn:
|
||||
image: vimagick/dsvpn
|
||||
command: server vpn.key auto 443
|
||||
ports:
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./data:/etc/dsvpn
|
||||
tty: true
|
||||
privileged: true
|
||||
restart: unless-stopped
|
||||
version: "3.8"
|
||||
services:
|
||||
dsvpn:
|
||||
image: vimagick/dsvpn
|
||||
command: server vpn.key auto 443
|
||||
ports:
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./data:/etc/dsvpn
|
||||
tty: true
|
||||
privileged: true
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
server
|
||||
@ -35,7 +37,7 @@ client
|
||||
------
|
||||
|
||||
```bash
|
||||
$ sudo dsvpn vpn.key 1.2.3.4 1959
|
||||
$ sudo dsvpn vpn.key 1.2.3.4 443
|
||||
$ ifconfig tun0
|
||||
$ ping 192.168.192.254
|
||||
```
|
||||
|
@ -1,10 +1,12 @@
|
||||
dsvpn:
|
||||
image: vimagick/dsvpn
|
||||
command: server vpn.key auto 443
|
||||
ports:
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./data:/etc/dsvpn
|
||||
tty: true
|
||||
privileged: true
|
||||
restart: unless-stopped
|
||||
version: "3.8"
|
||||
services:
|
||||
dsvpn:
|
||||
image: vimagick/dsvpn
|
||||
command: server vpn.key auto 443
|
||||
ports:
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./data:/etc/dsvpn
|
||||
tty: true
|
||||
privileged: true
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user