mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update kcptun
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ kcptun
|
|||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
server:
|
server:
|
||||||
image: vimagick/kcptun
|
image: vimagick/kcptun
|
||||||
command:
|
command:
|
||||||
@@ -21,7 +25,7 @@ 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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
server:
|
server:
|
||||||
image: vimagick/kcptun
|
image: vimagick/kcptun
|
||||||
command:
|
command:
|
||||||
@@ -9,7 +13,7 @@ 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
|
||||||
@@ -23,4 +27,4 @@ client:
|
|||||||
- "12948:12948/tcp"
|
- "12948:12948/tcp"
|
||||||
environment:
|
environment:
|
||||||
- KCPTUN_KEY=******
|
- KCPTUN_KEY=******
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user