This commit is contained in:
2018-08-30 15:58:40 +08:00
parent 1af05679f1
commit 127cd7e584
2 changed files with 53 additions and 0 deletions

33
frp/v0.21.0/README.md Normal file
View File

@@ -0,0 +1,33 @@
# Deploy frps / frpc with docker
## Start frps
```bash
docker service create \
--name frps \
--hostname frps \
--network swarm-net \
--replicas 1 \
--detach=true \
--endpoint-mode dnsrr \
--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
```bash
docker service create \
--name frpc \
--hostname frpc \
--network swarm-net \
--replicas 1 \
--detach=true \
--endpoint-mode dnsrr \
--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
```