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

echo "== RemnaWave Panel: install/start =="

if [[ ! -f .env ]]; then
  cp .env.example .env
  echo "Created .env from .env.example"
  echo "Edit .env and set API_BASE_URL/API_KEY before first real use."
fi

docker compose up -d --build
echo "Panel started: http://localhost:8080"
