mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update kcptun
This commit is contained in:
parent
8d7331807e
commit
a4a15a0973
@ -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,32 +10,36 @@ kcptun
|
|||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
server:
|
version: "3.8"
|
||||||
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
|
|
||||||
|
|
||||||
client:
|
services:
|
||||||
image: vimagick/kcptun
|
|
||||||
entrypoint: client_linux_amd64
|
server:
|
||||||
command:
|
image: vimagick/kcptun
|
||||||
--localaddr :12948
|
command:
|
||||||
--remoteaddr easypi.pro:29900
|
--listen :29900
|
||||||
--crypt aes
|
--target google-public-dns-a.google.com:53
|
||||||
--mode fast
|
--crypt aes
|
||||||
ports:
|
--mode fast
|
||||||
- "12948:12948/tcp"
|
ports:
|
||||||
environment:
|
- "29900:29900/udp"
|
||||||
- KCPTUN_KEY=******
|
environment:
|
||||||
restart: always
|
- 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
|
## Server Setup
|
||||||
|
@ -1,26 +1,30 @@
|
|||||||
server:
|
version: "3.8"
|
||||||
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
|
|
||||||
|
|
||||||
client:
|
services:
|
||||||
image: vimagick/kcptun
|
|
||||||
entrypoint: client_linux_amd64
|
server:
|
||||||
command:
|
image: vimagick/kcptun
|
||||||
--localaddr :12948
|
command:
|
||||||
--remoteaddr easypi.pro:29900
|
--listen :29900
|
||||||
--crypt aes
|
--target google-public-dns-a.google.com:53
|
||||||
--mode fast
|
--crypt aes
|
||||||
ports:
|
--mode fast
|
||||||
- "12948:12948/tcp"
|
ports:
|
||||||
environment:
|
- "29900:29900/udp"
|
||||||
- KCPTUN_KEY=******
|
environment:
|
||||||
restart: always
|
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user