forked from GammaParadox/openspell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-docker.ps1
More file actions
25 lines (18 loc) · 1018 Bytes
/
Copy pathsetup-docker.ps1
File metadata and controls
25 lines (18 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# setup-docker.ps1
# Initializes the OpenSpell backend.
$ErrorActionPreference = "Stop"
Write-Host "[1/5] Generating .env config..." -ForegroundColor Cyan
docker compose --profile init run --rm env-init
Write-Host "[2/5] Building and starting stack..." -ForegroundColor Cyan
docker compose up -d --build
Write-Host "[3/5] Running migrations..." -ForegroundColor Cyan
docker compose --profile migrate run --rm migrate
Write-Host "[4/5] Seeding initial data..." -ForegroundColor Cyan
docker compose run --rm api node packages/db/prisma/seed.js
Write-Host "[5/5] Restarting stack..." -ForegroundColor Cyan
docker compose up -d
Write-Host "==========================================" -ForegroundColor Green
Write-Host "OpenSpell is initialized and running!" -ForegroundColor Green
Write-Host "Check http://localhost:8887 in your browser." -ForegroundColor Green
Write-Host "Default admin login: admin / admin123" -ForegroundColor Green
Write-Host "==========================================" -ForegroundColor Green