This commit is contained in:
Steffen Lange 2024-11-14 16:01:55 +00:00
parent a327ee6a5a
commit 322b79fe6d
3 changed files with 25 additions and 0 deletions

5
frps/Dockerfile Normal file
View 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
View 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
View file

@ -0,0 +1,4 @@
[common]
bind_port = 7000
authentication_method = token
token = Gehe1mGehe11mGehe111m