#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "$0")/.."

echo "==> Building Docker images"
docker compose build

echo "==> Starting services"
docker compose up -d

echo "==> Running migrations"
scripts/migrate.sh

echo "==> Running healthcheck"
scripts/healthcheck.sh

echo "==> Deployment completed"
