From b115c971f5569254f737cf54395ce731d5d3ec5d Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Wed, 29 Jul 2026 16:07:43 +0330
Subject: [PATCH] fix(deploy): use --remove-orphans in docker compose up to
avoid container name conflicts
---
scripts/deploy.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index f907ed1..5ef5e41 100644
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -65,7 +65,7 @@ echo "Building Docker images..."
docker compose build --build-arg NEXT_PUBLIC_API_URL="${API_URL}/api" --build-arg VITE_API_URL="${API_URL}"
echo "Starting containers..."
-docker compose up -d
+docker compose up -d --remove-orphans
echo "Waiting for backend to start..."
sleep 15