1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00

update dsvpn

This commit is contained in:
kev 2019-12-13 12:51:43 +08:00
parent bcfd60e70b
commit 827fdd8b61
2 changed files with 5 additions and 6 deletions

@ -16,7 +16,7 @@ RUN set -xe \
FROM alpine
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache iptables
RUN apk add --no-cache iproute2
COPY --from=builder /usr/sbin/dsvpn /usr/sbin/
WORKDIR /etc/dsvpn
@ -24,4 +24,4 @@ WORKDIR /etc/dsvpn
EXPOSE 443
ENTRYPOINT ["dsvpn"]
CMD ["server", "vpn.key"]
CMD ["server", "vpn.key", "auto", "443"]

@ -1,11 +1,10 @@
dsvpn:
image: vimagick/dsvpn
command: server vpn.key auto 1959
command: server vpn.key auto 443
ports:
- "1959:1959"
- "443:443"
volumes:
- ./data:/etc/dsvpn
devices:
- /dev/net/tun
tty: true
privileged: true
restart: unless-stopped