From e9d744f4f52f388702bce35fa03185cd3caa6935 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Sun, 17 Oct 2021 10:44:55 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Added=20network=20mode=20host=20?= =?UTF-8?q?to=20docker-compose=20services?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 6 ++++++ docker-env/threetwo-import-service.env | 1 - src/client/context/socket/socket.context.tsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 88f4fc4..cc0896a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,7 @@ services: threetwo: build: context: . + network: host image: frishi/threetwo container_name: threetwo-ui env_file: ./docker-compose.env @@ -24,6 +25,7 @@ services: comicvineapi: build: context: https://github.com/rishighan/comicvine-service.git + network: host image: frishi/comicvine-service container_name: comicvine-api ports: @@ -41,6 +43,7 @@ services: comicvine: build: context: https://github.com/rishighan/comicvine-service.git + network: host image: frishi/comicvine-service container_name: comicvine-service environment: @@ -54,6 +57,7 @@ services: importapi: build: context: https://github.com/rishighan/threetwo-import-service.git + network: host image: frishi/threetwo-import-service container_name: threetwo-import-api ports: @@ -73,6 +77,7 @@ services: import: build: context: https://github.com/rishighan/threetwo-import-service.git + network: host image: frishi/threetwo-import-service container_name: import depends_on: @@ -90,6 +95,7 @@ services: imagetransformation: build: context: https://github.com/rishighan/threetwo-import-service.git + network: host image: frishi/threetwo-import-service container_name: image-transformation volumes: diff --git a/docker-env/threetwo-import-service.env b/docker-env/threetwo-import-service.env index 48e6c75..328860f 100644 --- a/docker-env/threetwo-import-service.env +++ b/docker-env/threetwo-import-service.env @@ -5,5 +5,4 @@ MONGO_URI=mongodb://db:27017/threetwo TRANSPORTER=nats://nats:4222 CALIBRE_PATH=/opt/calibre CACHER=Memory -PWD=./ diff --git a/src/client/context/socket/socket.context.tsx b/src/client/context/socket/socket.context.tsx index 211387a..e948030 100644 --- a/src/client/context/socket/socket.context.tsx +++ b/src/client/context/socket/socket.context.tsx @@ -30,7 +30,7 @@ export const WebSocketProvider = ({ children }): ReactElement => { autoDismiss: 0, }), ); - }) + }); socket.on("disconnect", () => { console.log(`disconnect`); });