diff --git a/.github/workflows/BackEnd_CD.yml b/.github/workflows/BackEnd_CD.yml index 981b580c..ec71b72f 100644 --- a/.github/workflows/BackEnd_CD.yml +++ b/.github/workflows/BackEnd_CD.yml @@ -39,5 +39,5 @@ jobs: docker stop my-app || true docker rm my-app || true docker cp /var/env/.env my-app:/var/env/.env - docker run --name my-app -d -p 3000:3000 --env-file /var/env/.env ${{ secrets.NCP_CONTAINER_REGISTRY }}/my-app:latest + docker run --name my-app -d -p --net=host --env-file /var/env/.env ${{ secrets.NCP_CONTAINER_REGISTRY }}/my-app:latest '