/docker-frp

Docker image for frp reverse proxy

Primary LanguageShell

Frp reverse proxy docker image

A docker container for the frp reverse proxy. Support server/client side mode.

Image tag

v1.0.0

Frp version: 0.9.2

How to use


docker run --name some-frp --restart always -d \ 
    --net host \
    -e MODE=server \
    -v /path/to/frp/config:/var/frp/config \
    serenader/docker-frp

Network

Please use host network mode to make sure the container run properly.

Environment Variables

MODE

Specify which mode to run. Available options are:

  • server: run as the server side.
  • client: run as the client side.

Different mode requires different configuration file. For the server mode, it will require /var/frp/config/frps.ini file for the config. For the client mode, it will require /var/frp/config/frpc.ini file.

Volume

Please attach the configuration's folder to the container:

-v /path/to/frp/config:/var/frp/config

Make sure the frps.ini or frpc.ini is exist in your configuration's folder.

How to build

Clone this project, and run docker build -t frp ..