Add frps
This commit is contained in:
parent
a327ee6a5a
commit
322b79fe6d
3 changed files with 25 additions and 0 deletions
5
frps/Dockerfile
Normal file
5
frps/Dockerfile
Normal file
|
|
@ -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
|
||||
16
frps/docker-compose.yml
Normal file
16
frps/docker-compose.yml
Normal file
|
|
@ -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
|
||||
4
frps/frps.ini
Normal file
4
frps/frps.ini
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[common]
|
||||
bind_port = 7000
|
||||
authentication_method = token
|
||||
token = Gehe1mGehe11mGehe111m
|
||||
Loading…
Add table
Add a link
Reference in a new issue