把frp的docker-compose文件中的network_mode改成host。

This commit is contained in:
KennyLee 2017-01-24 20:38:25 +08:00
parent 4c2b286043
commit 4422096811
2 changed files with 2 additions and 4 deletions

View File

@ -2,6 +2,7 @@ version: '2'
services: services:
app: app:
image: registry.cn-hangzhou.aliyuncs.com/kennylee/frp image: registry.cn-hangzhou.aliyuncs.com/kennylee/frp
network_mode: "host"
volumes: volumes:
- ./frpc.ini:/data/frp/frpc.ini:z - ./frpc.ini:/data/frp/frpc.ini:z
restart: always restart: always

View File

@ -3,10 +3,7 @@ services:
app: app:
image: registry.cn-hangzhou.aliyuncs.com/kennylee/frp image: registry.cn-hangzhou.aliyuncs.com/kennylee/frp
container_name: frps container_name: frps
ports: network_mode: "host"
- "7000:7000"
- "8080:8080"
- "7500:7500"
volumes: volumes:
- ./frps.ini:/data/frp/frps.ini:z - ./frps.ini:/data/frp/frps.ini:z
restart: always restart: always