From 52efc2fe23f2389914ec1aed91ab3a716e8d5e9e Mon Sep 17 00:00:00 2001 From: Mark Zheleznyakov Date: Thu, 27 Nov 2025 17:47:39 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=A5=D0=BE=D1=81=D1=82=D0=BD=D0=B5?= =?UTF-8?q?=D0=B9=D0=BC=D1=8B=20=D0=B2=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF?= =?UTF-8?q?=D1=82=D0=B5=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/run.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/run.sh b/scripts/run.sh index 898744f..0fa4a69 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -116,7 +116,7 @@ docker build -t p1ctos4ve-backend:latest -f apps/backend/Dockerfile . echo -e "${YELLOW}๐Ÿ—„๏ธ Step 3: Running database migrations...${NC}" docker run --rm \ --network "${NETWORK_NAME}" \ - -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@postgres:5432/p1ctos4ve" \ + -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@host.docker.internal:5432/p1ctos4ve" \ -e REDIS_URL="redis://redis:6379" \ -e S3_ENDPOINT="http://seaweedfs-s3:8333" \ -e S3_REGION="us-east-1" \ @@ -136,9 +136,9 @@ docker run --rm \ echo -e "${YELLOW}๐Ÿงช Step 4: Running unit tests...${NC}" docker run --rm \ --network "${NETWORK_NAME}" \ - -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@postgres:5432/p1ctos4ve" \ - -e REDIS_URL="redis://redis:6379" \ - -e S3_ENDPOINT="http://seaweedfs-s3:8333" \ + -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@host.docker.internal:5432/p1ctos4ve" \ + -e REDIS_URL="redis://host.docker.internal:6379" \ + -e S3_ENDPOINT="http://host.docker.internal:8333" \ -e S3_REGION="us-east-1" \ -e S3_BUCKET="${BUCKET_NAME}" \ -e S3_ACCESS_KEY_ID="any" \ @@ -168,9 +168,9 @@ BACKEND_CONTAINER=$(docker run -d \ --name p1ctos4ve-backend-test \ --network "${NETWORK_NAME}" \ -p 3000:3000 \ - -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@postgres:5432/p1ctos4ve" \ - -e REDIS_URL="redis://redis:6379" \ - -e S3_ENDPOINT="http://seaweedfs-s3:8333" \ + -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@host.docker.internal:5432/p1ctos4ve" \ + -e REDIS_URL="redis://host.docker.internal:6379" \ + -e S3_ENDPOINT="http://host.docker.internal:8333" \ -e S3_REGION="us-east-1" \ -e S3_BUCKET="${BUCKET_NAME}" \ -e S3_ACCESS_KEY_ID="any" \ @@ -199,9 +199,9 @@ echo -e " ${GREEN}โœ“${NC}" docker exec p1ctos4ve-backend-test sh -c "bun test --preload ./src/tests/setup.ts src/tests/e2e/" || \ docker run --rm \ --network "${NETWORK_NAME}" \ - -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@postgres:5432/p1ctos4ve" \ - -e REDIS_URL="redis://redis:6379" \ - -e S3_ENDPOINT="http://seaweedfs-s3:8333" \ + -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@host.docker.internal:5432/p1ctos4ve" \ + -e REDIS_URL="redis://host.docker.internal:6379" \ + -e S3_ENDPOINT="http://host.docker.internal:8333" \ -e S3_REGION="us-east-1" \ -e S3_BUCKET="${BUCKET_NAME}" \ -e S3_ACCESS_KEY_ID="any" \ @@ -237,9 +237,9 @@ echo -e "${YELLOW}Press Ctrl+C to stop${NC}" docker run --rm \ --network "${NETWORK_NAME}" \ -p 3000:3000 \ - -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@postgres:5432/p1ctos4ve" \ - -e REDIS_URL="redis://redis:6379" \ - -e S3_ENDPOINT="http://seaweedfs-s3:8333" \ + -e DATABASE_URL="postgresql://p1ctos4ve:p1ctos4ve_password@host.docker.internal:5432/p1ctos4ve" \ + -e REDIS_URL="redis://host.docker.internal:6379" \ + -e S3_ENDPOINT="http://host.docker.internal:8333" \ -e S3_REGION="us-east-1" \ -e S3_BUCKET="${BUCKET_NAME}" \ -e S3_ACCESS_KEY_ID="any" \