Skip to content

Commit b1f6cef

Browse files
ImTotemclaude
andcommitted
feat(infra): ensure DB services are running on every deploy
deploy.sh now runs docker-compose.db.yml up -d before app deployment. Already running containers are unaffected (no-op). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 80c8603 commit b1f6cef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

infra/scripts/deploy.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -euo pipefail
33

44
COMPOSE="docker compose --env-file .env -f infra/docker/docker-compose.yml"
5+
COMPOSE_DB="docker compose --env-file .env -f infra/docker/docker-compose.db.yml"
56
NGINX_CONF="infra/docker/nginx.conf"
67
HEALTH_PATH="/openapi.json"
78
MAX_RETRIES=10
@@ -51,6 +52,9 @@ echo "=== BCSD API Blue-Green Deploy ==="
5152

5253
check_credentials
5354

55+
echo "0. Ensuring DB services..."
56+
$COMPOSE_DB up -d
57+
5458
CURRENT=$(current_slot)
5559
NEXT=$(next_slot)
5660

0 commit comments

Comments
 (0)