From ac58c2bb2d887d1d2e7992eb902a3c9794ed7df3 Mon Sep 17 00:00:00 2001 From: Dennis Schridde <51333502+fdcds@users.noreply.github.com> Date: Wed, 3 Jul 2019 17:26:19 +0200 Subject: [PATCH] Place container in host network This allows us to connect to gRPC services running on the `localhost` interface on the developer's machine. cf. https://docs.docker.com/compose/compose-file/#network_mode --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 52d6f03..842d3d6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ version: '3' services: grpcox: + network_mode: host build: . ports: - "6969:6969" @@ -8,4 +9,4 @@ services: - ./index:/index - ./log:/log env_file: - - config.env \ No newline at end of file + - config.env