diff --git a/frps/Dockerfile b/frps/Dockerfile new file mode 100644 index 0000000..5579b65 --- /dev/null +++ b/frps/Dockerfile @@ -0,0 +1,5 @@ +FROM amd64/alpine +ENV FRP_VERSION 0.48.0 +RUN wget -O - https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz | \ + tar -xzvf - -C /usr/local/bin --strip-components=1 frp_${FRP_VERSION}_linux_amd64/frps +ENTRYPOINT /usr/local/bin/frps -c /etc/frp/frps.ini diff --git a/frps/docker-compose.yml b/frps/docker-compose.yml new file mode 100644 index 0000000..782157e --- /dev/null +++ b/frps/docker-compose.yml @@ -0,0 +1,16 @@ +version: '3' + +services: + frps: + container_name: frps + build: . + restart: unless-stopped + volumes: + - ./frps.ini:/etc/frp/frps.ini:ro + ports: + - 7000:7000 + - 80:80 + - 443:443 + - 222:222 + - 2222:2222 + - 1234:1234 diff --git a/frps/frps.ini b/frps/frps.ini new file mode 100644 index 0000000..b6d85f5 --- /dev/null +++ b/frps/frps.ini @@ -0,0 +1,4 @@ +[common] +bind_port = 7000 +authentication_method = token +token = Gehe1mGehe11mGehe111m