Docker images for frp.
Go to file
quackerd 5b291d6dce
Some checks failed
continuous-integration/drone/push Build is failing
Update '.drone.yml'
2022-08-08 08:18:33 +00:00
.drone.yml Update '.drone.yml' 2022-08-08 08:18:33 +00:00
Dockerfile Update 'Dockerfile' 2022-06-20 01:47:17 +00:00
LICENSE Update 'LICENSE' 2020-10-07 00:56:03 +00:00
README.md Update 'README.md' 2021-02-05 00:19:31 +00:00
run.sh Update 'run.sh' 2021-02-17 05:39:08 +00:00
tag.sh Add 'tag.sh' 2022-06-20 01:52:05 +00:00

License: MIT Build Status

docker-frp

Docker image for frp. Binaries directly obtained from the official frp repo fatedier/frp.

The instructions below apply to docker-compose.

Networking

We recommend using the network_mode = host (host network) option. Otherwise you would need to manually expose the listening port as well as all the reverse proxied ports.

Environment variables

SERVER. Defaults to 0 = client mode. 1 = server mode.

Volumes

Note the difference in file names (frps.ini vs frpc.ini)

Client mode

Client configuration file frpc.ini -> /opt/frp/frpc.ini

Server mode

Server configuration file frps.ini -> /opt/frp/frps.ini

docker-compose

Sample Client

version: "2.1"
services:
        frp:
                image: quackerd/frp
                container_name: frp
                network_mode: host
                restart: unless-stopped
                volumes:
                        - ./config/frpc.ini:/opt/frp/frpc.ini

Sample Server

version: "2.1"
services:
        frp:
                image: quackerd/frp
                container_name: frp_srv
                network_mode: host
                restart: unless-stopped
                environment:
                        - SERVER=1
                volumes:
                        - ./config/frps.ini:/opt/frp/frps.ini

Troubleshooting

The logs can be obtained by docker logs <container_name>. They are usually very self-explanatory.