From 44220968118f9837ae3e2e2370ba7c094d121dd6 Mon Sep 17 00:00:00 2001 From: KennyLee Date: Tue, 24 Jan 2017 20:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8Afrp=E7=9A=84docker-compose=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=AD=E7=9A=84network=5Fmode=E6=94=B9=E6=88=90host?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frp/frpc/docker-compose.yml | 1 + frp/frps/docker-compose.yml | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frp/frpc/docker-compose.yml b/frp/frpc/docker-compose.yml index 311c9df..b080c05 100644 --- a/frp/frpc/docker-compose.yml +++ b/frp/frpc/docker-compose.yml @@ -2,6 +2,7 @@ version: '2' services: app: image: registry.cn-hangzhou.aliyuncs.com/kennylee/frp + network_mode: "host" volumes: - ./frpc.ini:/data/frp/frpc.ini:z restart: always diff --git a/frp/frps/docker-compose.yml b/frp/frps/docker-compose.yml index 1170efa..bdbb29b 100644 --- a/frp/frps/docker-compose.yml +++ b/frp/frps/docker-compose.yml @@ -3,10 +3,7 @@ services: app: image: registry.cn-hangzhou.aliyuncs.com/kennylee/frp container_name: frps - ports: - - "7000:7000" - - "8080:8080" - - "7500:7500" + network_mode: "host" volumes: - ./frps.ini:/data/frp/frps.ini:z restart: always