Add initial Prisma migration
All checks were successful
Build / build (push) Successful in 11m12s
Template Compliance / compliance (push) Successful in 5s
Release Dry Run / release-dry-run (push) Successful in 1m34s

This commit is contained in:
MrSphay
2026-05-15 18:59:03 +02:00
parent 2f0b54b94e
commit cea591b587
3 changed files with 166 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ WatchLink is a self-hosted shared-watch web app with persistent user rooms, loca
```bash
npm install
cp .env.example .env
npm run db:push
npm run db:migrate
npm run dev
```
@@ -108,6 +108,8 @@ docker compose up --build
The Compose stack exposes the web app on `http://localhost:${HOST_PORT:-3000}` and uses a Postgres volume named `watchlink_postgres-data`. Keep the container `PORT` at `3000`; change `HOST_PORT` when another container already uses port 3000 on the host.
On first start, the web container runs `prisma migrate deploy` before starting Next.js. This creates the required tables in a clean Postgres volume.
Build and publish the Gitea image:
```bash