1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-06-10 23:37:44 +02:00

update kcptun

This commit is contained in:
kev 2021-12-09 19:12:58 +08:00
parent 8d7331807e
commit a4a15a0973
3 changed files with 63 additions and 55 deletions

View File

@ -2,12 +2,12 @@
# Dockerfile for kcptun # Dockerfile for kcptun
# #
FROM alpine FROM alpine:3
MAINTAINER kev <noreply@easypi.pro> MAINTAINER EasyPi Software Foundation
ENV KCPTUN_VERSION 20171201 ENV KCPTUN_VERSION=20210922
ENV KCPTUN_FILE kcptun-linux-amd64-${KCPTUN_VERSION}.tar.gz 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_URL=https://github.com/xtaci/kcptun/releases/download/v${KCPTUN_VERSION}/${KCPTUN_FILE}
RUN set -xe \ RUN set -xe \
&& apk add --no-cache curl \ && apk add --no-cache curl \

View File

@ -10,7 +10,11 @@ kcptun
## docker-compose.yml ## docker-compose.yml
```yaml ```yaml
server: version: "3.8"
services:
server:
image: vimagick/kcptun image: vimagick/kcptun
command: command:
--listen :29900 --listen :29900
@ -21,9 +25,9 @@ server:
- "29900:29900/udp" - "29900:29900/udp"
environment: environment:
- KCPTUN_KEY=****** - KCPTUN_KEY=******
restart: always restart: unless-stopped
client: client:
image: vimagick/kcptun image: vimagick/kcptun
entrypoint: client_linux_amd64 entrypoint: client_linux_amd64
command: command:
@ -35,7 +39,7 @@ client:
- "12948:12948/tcp" - "12948:12948/tcp"
environment: environment:
- KCPTUN_KEY=****** - KCPTUN_KEY=******
restart: always restart: unless-stopped
``` ```
## Server Setup ## Server Setup

View File

@ -1,4 +1,8 @@
server: version: "3.8"
services:
server:
image: vimagick/kcptun image: vimagick/kcptun
command: command:
--listen :29900 --listen :29900
@ -9,9 +13,9 @@ server:
- "29900:29900/udp" - "29900:29900/udp"
environment: environment:
- KCPTUN_KEY=****** - KCPTUN_KEY=******
restart: always restart: unless-stopped
client: client:
image: vimagick/kcptun image: vimagick/kcptun
entrypoint: client_linux_amd64 entrypoint: client_linux_amd64
command: command:
@ -23,4 +27,4 @@ client:
- "12948:12948/tcp" - "12948:12948/tcp"
environment: environment:
- KCPTUN_KEY=****** - KCPTUN_KEY=******
restart: always restart: unless-stopped