#!/usr/bin/env bash
# Mongo + Redis（docker compose）
set -euo pipefail

ROOT="$(cd "$(dirname "$0")" && pwd)"
ENV_FILE="$ROOT/../deploy/.env.dev"

if [[ ! -f "$ENV_FILE" ]]; then
  echo "找不到 $ENV_FILE，請先：cp deploy/.env.dev.example deploy/.env.dev" >&2
  exit 1
fi

exec docker compose -f "$ROOT/docker-compose.yml" --env-file "$ENV_FILE" up -d