Unofficial docker image packaging for Frp.
Supported architecture:
- amd64
- arm32v6
- arm32v7
- arm64v8
start frps
docker run -d \
--name frps \
--network host \
--restart=always \
-e CONF_TYPE=yml \
-v ./conf:/etc/frp \
wnwd/frps:latest
# modify your config file (located ./conf/frps.yml / json / toml)
docker restart frps
start frpc
docker run -d \
--name frpc \
--network host \
--restart=always \
-e CONF_TYPE=yml \
-v ./conf:/etc/frp \
wnwd/frpc:latest
# modify your config file (located ./conf/frpc.yml / json / toml)
docker restart frps
frps:
# docker-compose.yml
version: '3'
services:
Frp:
image: 'wnwd/frps:latest'
container_name: frps
restart: unless-stopped
environment:
CONF_TYPE: 'yml'
# CONF_TYPE: 'toml'
# CONF_TYPE: 'json'
volumes:
- ./conf:/etc/frp
network_mode: 'host'
frpc:
# docker-compose.yml
version: '3'
services:
Frp:
image: 'wnwd/frpc:latest'
container_name: frpc
restart: unless-stopped
environment:
CONF_TYPE: 'yml'
# CONF_TYPE: 'toml'
# CONF_TYPE: 'json'
volumes:
- ./conf:/etc/frp
network_mode: 'host'
docker compose up -d
# modify your config file
docker restart frps # frpc
Environment variable CONF_TYPE
was optional, valid values include yml
, json
and toml
, the defaule value was yml
.
For example: Change timezone to Asia/Shanghai
docker exec -it apk add tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Shanghai/Asia" > /etc/timezone \
&& apk del tzdata
-
Where to file issues:https://github.com/wnwd/frp/issues
-
Maintained by:mapxn https://github.com/mapxn
Last checked on: 2025 January , current frp version:v0.61.1 .