From 6bffa3cafbea3fe7285504d3fabb490728a8554f Mon Sep 17 00:00:00 2001 From: Joel Davies Date: Thu, 25 Apr 2024 15:47:19 +0000 Subject: [PATCH] Fix issue in CI after switching to use host networking on backend docker-compose #499 --- .github/workflows/ci-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 18398c477..92c421191 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -97,7 +97,7 @@ jobs: - name: Setup MongoDB working-directory: ../inventory-management-system-api run: | - python ./scripts/dev_cli.py --ci db-init --replicaSetMemberHost mongodb_container + python ./scripts/dev_cli.py --ci db-init --replicaSetMemberHost localhost python ./scripts/dev_cli.py --ci db-import # Use docker run here to test the actual built image @@ -105,7 +105,7 @@ jobs: # name) - name: Start inventory-management-system-api run: | - docker run -d -p 8000:8000 --network=inventory-management-system-api_default \ + docker run -d -p 8000:8000 --network=host \ --name inventory_management_system_api_container \ --env AUTHENTICATION__ENABLED=false \ --env API__TITLE="Inventory Management System API" \