Ops – Deployment & Network Guide
Docker Compose (production)
cp .env.example .env
# Fill in all values in .env
docker compose up -d
# Server: http://localhost:3001
# Client: http://localhost:8080
Run migrations after first boot:
docker compose exec server node -e "require('./dist/lib/prisma').prisma.\$executeRaw\`SELECT 1\`"
# or directly:
docker compose run --rm server npx prisma migrate deploy
Development (local)
# Start DB + Redis only
docker compose -f docker-compose.dev.yml up -d
# Install dependencies
npm install
# Generate Prisma client
npm run db:generate
# Run first migration
npm run db:migrate
# Seed demo data
npm run db:seed
# Start both server and client with hot-reload
npm run dev
Client: http://localhost:5173
Server: http://localhost:3001
Prisma Studio: npm run db:studio
Unraid Deployment
- Place the repo in
/mnt/user/appdata/storybid/. - Copy
.env.example→.envand fill in all values. - From the Unraid terminal:
docker compose up -d - Optionally add a Community Applications custom app pointing to
docker-compose.yml.
UniFi Event-Network Setup
See unifi-dns.md for step-by-step instructions to:
- Create a dedicated event SSID.
- Add a local DNS record (
auction.event.lan→ server LAN IP). - Configure the
LOCAL_HOSTNAMEenv var so the app can fail over to it.