From 59edebe1cf9c17364e9fef3a5607da36eaf03f92 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Sun, 15 Sep 2024 03:44:14 +0200 Subject: [PATCH] build(docker): use "host" as --network for docker runs --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5a4ec4dd8..282944364 100644 --- a/Makefile +++ b/Makefile @@ -196,7 +196,7 @@ serve-database: --containerized-database .PHONY: --containerized-database --containerized-database: FRADRIVE_SERVICE=database ---containerized-database: CONTAINER_PORTS=-p 5432:5432 +--containerized-database: CONTAINER_PORTS=-p 5432:5432 --network="host" --containerized-database: --image-build if [ "$(IN_CONTAINER)" == "false" ] ; then \ $(CONTAINER_COMMAND) run -it $(CONTAINER_PORTS) --name fradrive.$(FRADRIVE_SERVICE).$$(date +'%Y-%m-%dT%H-%M-%S') fradrive/$(FRADRIVE_SERVICE) ; \ @@ -211,7 +211,7 @@ serve-database: --containerized-database .PHONY: --containerized-%-backend --containerized-%-backend: FRADRIVE_SERVICE=backend #--containerized-%-backend: --image-build --image-run-%-backend; ---containerized-%-backend: CONTAINER_PORTS=-p $(DEV_PORT_HTTP):3000 -p $(DEV_PORT_HTTPS):3443 +--containerized-%-backend: CONTAINER_PORTS=-p $(DEV_PORT_HTTP):3000 -p $(DEV_PORT_HTTPS):3443 --network="host" --containerized-%-backend: --image-build $(MAKE) -- --image-run-$*-backend