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

echo "==> Stopping service"
docker compose down

echo "==> Rebuilding image with updated source"
docker compose build --no-cache

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

echo "==> Showing recent logs"
docker compose logs --tail=100
echo "==> Done. Use: docker compose logs -f"
