1
0
mirror of https://github.com/gusaul/grpcox.git synced 2025-01-24 05:04:39 +00:00

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
This commit is contained in:
Dennis Schridde 2019-07-03 17:26:19 +02:00 committed by GitHub
parent 63bb2a0d2c
commit ac58c2bb2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
version: '3' version: '3'
services: services:
grpcox: grpcox:
network_mode: host
build: . build: .
ports: ports:
- "6969:6969" - "6969:6969"
@ -8,4 +9,4 @@ services:
- ./index:/index - ./index:/index
- ./log:/log - ./log:/log
env_file: env_file:
- config.env - config.env