Dockerfiles/frp/latest
2020-03-04 22:44:03 +08:00
..
Dockerfile add git-cli 2020-03-04 22:44:03 +08:00
README.md add git-cli 2020-03-04 22:44:03 +08:00

Deploy frps / frpc with docker

Start frps

docker service create \
  --name frps \
  --hostname frps \
  --network swarm-net \
  --replicas 1 \
  --detach=true \
  --publish 7500:7500 \
  --publish 7000:7000 \
  --mount type=bind,source=/etc/localtime,target=/etc/localtime \
  --mount type=bind,source=/data/frp/frps.ini,target=/frp/frps.ini \
  newnius/frp:v0.21.0

Start frpc

docker service create \
  --name frpc \
  --hostname frpc \
  --network swarm-net \
  --replicas 1 \
  --detach=true \
  --mount type=bind,source=/etc/localtime,target=/etc/localtime \
  --mount type=bind,source=/data/frp/frpc.ini,target=/frp/frpc.ini \
  newnius/frp:v0.21.0