diff --git a/kcptun/Dockerfile b/kcptun/Dockerfile index dc88346..47aaccc 100644 --- a/kcptun/Dockerfile +++ b/kcptun/Dockerfile @@ -2,12 +2,12 @@ # Dockerfile for kcptun # -FROM alpine -MAINTAINER kev +FROM alpine:3 +MAINTAINER EasyPi Software Foundation -ENV KCPTUN_VERSION 20171201 -ENV KCPTUN_FILE kcptun-linux-amd64-${KCPTUN_VERSION}.tar.gz -ENV KCPTUN_URL https://github.com/xtaci/kcptun/releases/download/v${KCPTUN_VERSION}/${KCPTUN_FILE} +ENV KCPTUN_VERSION=20210922 +ENV KCPTUN_FILE=kcptun-linux-amd64-${KCPTUN_VERSION}.tar.gz +ENV KCPTUN_URL=https://github.com/xtaci/kcptun/releases/download/v${KCPTUN_VERSION}/${KCPTUN_FILE} RUN set -xe \ && apk add --no-cache curl \ diff --git a/kcptun/README.md b/kcptun/README.md index 1515c9f..2c785e7 100644 --- a/kcptun/README.md +++ b/kcptun/README.md @@ -10,32 +10,36 @@ kcptun ## docker-compose.yml ```yaml -server: - image: vimagick/kcptun - command: - --listen :29900 - --target google-public-dns-a.google.com:53 - --crypt aes - --mode fast - ports: - - "29900:29900/udp" - environment: - - KCPTUN_KEY=****** - restart: always +version: "3.8" -client: - image: vimagick/kcptun - entrypoint: client_linux_amd64 - command: - --localaddr :12948 - --remoteaddr easypi.pro:29900 - --crypt aes - --mode fast - ports: - - "12948:12948/tcp" - environment: - - KCPTUN_KEY=****** - restart: always +services: + + server: + image: vimagick/kcptun + command: + --listen :29900 + --target google-public-dns-a.google.com:53 + --crypt aes + --mode fast + ports: + - "29900:29900/udp" + environment: + - KCPTUN_KEY=****** + restart: unless-stopped + + client: + image: vimagick/kcptun + entrypoint: client_linux_amd64 + command: + --localaddr :12948 + --remoteaddr easypi.pro:29900 + --crypt aes + --mode fast + ports: + - "12948:12948/tcp" + environment: + - KCPTUN_KEY=****** + restart: unless-stopped ``` ## Server Setup diff --git a/kcptun/docker-compose.yml b/kcptun/docker-compose.yml index 7edffce..61d0dfe 100644 --- a/kcptun/docker-compose.yml +++ b/kcptun/docker-compose.yml @@ -1,26 +1,30 @@ -server: - image: vimagick/kcptun - command: - --listen :29900 - --target google-public-dns-a.google.com:53 - --crypt aes - --mode fast - ports: - - "29900:29900/udp" - environment: - - KCPTUN_KEY=****** - restart: always +version: "3.8" -client: - image: vimagick/kcptun - entrypoint: client_linux_amd64 - command: - --localaddr :12948 - --remoteaddr easypi.pro:29900 - --crypt aes - --mode fast - ports: - - "12948:12948/tcp" - environment: - - KCPTUN_KEY=****** - restart: always +services: + + server: + image: vimagick/kcptun + command: + --listen :29900 + --target google-public-dns-a.google.com:53 + --crypt aes + --mode fast + ports: + - "29900:29900/udp" + environment: + - KCPTUN_KEY=****** + restart: unless-stopped + + client: + image: vimagick/kcptun + entrypoint: client_linux_amd64 + command: + --localaddr :12948 + --remoteaddr easypi.pro:29900 + --crypt aes + --mode fast + ports: + - "12948:12948/tcp" + environment: + - KCPTUN_KEY=****** + restart: unless-stopped