1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
This commit is contained in:
kev 2017-11-02 20:19:07 +08:00
parent f0c42a8182
commit 3f3f5b0f6c
4 changed files with 45 additions and 0 deletions

20
frp/Dockerfile Normal file

@ -0,0 +1,20 @@
#
# Dockerfile for frp
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
ENV FRP_VERSION 0.13.0
ENV FRP_URL https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz
WORKDIR /opt/frp
RUN set -xe \
&& apk add --no-cache curl tar \
&& curl -sSL $FRP_URL | tar xz --strip 1 \
&& apk del curl tar
EXPOSE 7000/tcp 7000/udp 7500/tcp
CMD ["./frps", "-c", "frps.ini"]

9
frp/README.md Normal file

@ -0,0 +1,9 @@
frp
===
[frp][1] is a fast reverse proxy to help you expose a local server behind a NAT
or firewall to the internet. Now, it supports tcp, udp, http and https protocol
when requests can be forwarded by domains to backward web services.
[1]: https://github.com/fatedier/frp

7
frp/data/frps.ini Normal file

@ -0,0 +1,7 @@
[common]
bind_addr = 0.0.0.0
bind_port = 7000
kcp_bind_port = 7000
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin

9
frp/docker-compose.yml Normal file

@ -0,0 +1,9 @@
frp:
image: vimagick/frp
ports:
- "7000:7000/tcp"
- "7000:7000/udp"
- "7500:7500/tcp"
volumes:
- ./data/frps.ini:/opt/frp/frps.ini
restart: always