1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02: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

View File

@ -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"]

View File

@ -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