diff --git a/frp/v0.33.0/Dockerfile b/frp/v0.33.0/Dockerfile new file mode 100644 index 0000000..e69ad48 --- /dev/null +++ b/frp/v0.33.0/Dockerfile @@ -0,0 +1,20 @@ +FROM alpine:3 + +MAINTAINER Newnius + +USER root + +# Prerequisites +RUN apk add --no-cache openssl + +# Install frp +ENV VERSION 0.33.0 + +RUN wget -O frp.tar.gz https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_linux_amd64.tar.gz && \ + tar -xzf frp.tar.gz -C / && rm frp.tar.gz + +RUN mv /frp_${VERSION}_linux_amd64 /frp + +WORKDIR /frp + +CMD ["/frp/frps", "-c", "/frp/frps.ini"] diff --git a/frp/v0.33.0/Dockerfile.arm64 b/frp/v0.33.0/Dockerfile.arm64 new file mode 100644 index 0000000..e69ad48 --- /dev/null +++ b/frp/v0.33.0/Dockerfile.arm64 @@ -0,0 +1,20 @@ +FROM alpine:3 + +MAINTAINER Newnius + +USER root + +# Prerequisites +RUN apk add --no-cache openssl + +# Install frp +ENV VERSION 0.33.0 + +RUN wget -O frp.tar.gz https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_linux_amd64.tar.gz && \ + tar -xzf frp.tar.gz -C / && rm frp.tar.gz + +RUN mv /frp_${VERSION}_linux_amd64 /frp + +WORKDIR /frp + +CMD ["/frp/frps", "-c", "/frp/frps.ini"] diff --git a/frp/v0.33.0/README.md b/frp/v0.33.0/README.md new file mode 100644 index 0000000..7a4ecab --- /dev/null +++ b/frp/v0.33.0/README.md @@ -0,0 +1,31 @@ +# Deploy frps / frpc with docker + +## Start frps + +```bash +docker service create \ + --name frps \ + --hostname frps \ + --network swarm-net \ + --replicas 1 \ + --detach=true \ + --publish 7500:7500 \ + --publish 7000:7000 \ + --mount type=bind,source=/etc/localtime,target=/etc/localtime \ + --mount type=bind,source=/data/frp/frps.ini,target=/frp/frps.ini \ + newnius/frp:v0.33.0 +``` + +## Start frpc + +```bash +docker service create \ + --name frpc \ + --hostname frpc \ + --network swarm-net \ + --replicas 1 \ + --detach=true \ + --mount type=bind,source=/etc/localtime,target=/etc/localtime \ + --mount type=bind,source=/data/frp/frpc.ini,target=/frp/frpc.ini \ + newnius/frp:v0.33.0 +```