Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 1.35 KB

readme.md

File metadata and controls

63 lines (52 loc) · 1.35 KB

frp

A docker image for frp including frps and frpc. There is a github action to check updates and rebuild image if updates exist weekly. For more information, please see here.

Usage

You can refer on frp documentation.

frps

docker run \
  -d \
  --network host \
  --restart always \
  -v /path/frps.ini:/config/frps.ini \
  --name frps \
  mebtte/frps \
  -c /config/frps.ini

You can specify user by --user uid:gid. Also you can use docker compose like below:

services:
  frps:
    restart: always
    container_name: frps
    # user: 1000:1000
    image: mebtte/frps
    network_mode: host
    volumes:
      - /path/config.ini:/config/frps.ini:ro
    command: -c /config/frps.ini

frpc

docker run \
  -d \
  --network host \
  --restart always \
  -v /path/frpc.ini:/config/frpc.ini \
  --name frpc \
  mebtte/frpc \
  -c /config/frpc.ini

You can specity user using --user uid:gid. Also you can use docker compose like below:

services:
  frpc:
    restart: unless-stopped
    container_name: frpc
    # user: 1000:1000
    image: mebtte/frpc
    network_mode: host
    volumes:
      - /path/config.ini:/config/frpc.ini:ro
    command: -c /config/frpc.ini