diff --git a/.codex/project.md b/.codex/project.md index d786906..764aeb2 100644 --- a/.codex/project.md +++ b/.codex/project.md @@ -47,7 +47,7 @@ Next.js standalone build output: Docker image: ```text -git.wilkensxl.de/MrSphay/watchlink:latest +git.wilkensxl.de/mrsphay/watchlink:latest ``` ## Security Rules diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b3442f7..54de904 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -11,7 +11,8 @@ jobs: build: runs-on: ubuntu-latest env: - IMAGE_NAME: git.wilkensxl.de/MrSphay/watchlink:latest + DATABASE_URL: postgresql://watchlink:watchlink@localhost:5432/watchlink?schema=public + IMAGE_NAME: git.wilkensxl.de/mrsphay/watchlink:latest steps: - name: Checkout uses: actions/checkout@v4 diff --git a/AGENTS.md b/AGENTS.md index d4a6cb2..4558adb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,7 +14,7 @@ WatchLink is a Dockerized Next.js + Postgres web app for persistent shared watch - Do not create a release unless explicitly requested. - Create focused tracker issues for real follow-up work that is outside the current scope or independently parallelizable. If Gitea issue access is unavailable, document the follow-up in `docs/agent-handoff.md`. - Gitea target: `git.wilkensxl.de/MrSphay/WatchLink`. -- Docker image target: `git.wilkensxl.de/MrSphay/watchlink:latest`. +- Docker image target: `git.wilkensxl.de/mrsphay/watchlink:latest`. ## Commands diff --git a/Dockerfile b/Dockerfile index 06fb068..cfd3cb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ RUN npm install FROM node:22-bookworm-slim AS builder WORKDIR /app ENV NEXT_TELEMETRY_DISABLED=1 +ARG DATABASE_URL="postgresql://watchlink:watchlink@localhost:5432/watchlink?schema=public" +ENV DATABASE_URL=$DATABASE_URL COPY --from=deps /app/node_modules ./node_modules COPY . . RUN npx prisma generate && npm run build diff --git a/README.md b/README.md index 02e02b3..1fd32e1 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,9 @@ The Compose stack exposes the web app on `http://localhost:3000` and uses a Post Build and publish the Gitea image: ```bash -docker build -t git.wilkensxl.de/MrSphay/watchlink:latest . +docker build -t git.wilkensxl.de/mrsphay/watchlink:latest . docker login git.wilkensxl.de -docker push git.wilkensxl.de/MrSphay/watchlink:latest +docker push git.wilkensxl.de/mrsphay/watchlink:latest ```
