mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
把frp的docker-compose文件中的network_mode改成host。
This commit is contained in:
parent
4c2b286043
commit
4422096811
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user