https://github.com/gera2ld/frp-docker
https://github.com/gera2ld/frp-docker
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gera2ld/frp-docker
- Owner: gera2ld
- Created: 2022-12-27T23:13:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-22T07:44:40.000Z (over 1 year ago)
- Last Synced: 2025-03-04T19:45:57.570Z (over 1 year ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/gera2ld/frp
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# frp
This is an unofficial build for frp.
## Build
```bash
$ docker build -t frp .
```
## Usage
Create a `docker-compose.yml` for server:
```yaml
version: "3.7"
services:
frp:
image: gera2ld/frp:latest
restart: unless-stopped
ports:
- "7000:7000"
- "7000:7000/udp"
- "7001:7001"
volumes:
- ./data/frps.toml:/etc/frps.toml
command: frps -c /etc/frps.toml
```
Create a `docker-compose.yml` for client:
```yaml
version: "3.7"
services:
frp:
image: gera2ld/frp:latest
restart: unless-stopped
volumes:
- ./data/frpc.toml:/etc/frpc.toml
command: frpc -c /etc/frpc.toml
```