Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ The web app is automatically configured to connect to your self-hosted services
- `NN_AUTH_HOST` - Override the default authentication server URL (defaults to `AUTH_SERVER_PUBLIC_URL`)
- `NN_SSE_HOST` - Override the default SSE server URL (defaults to `SSE_SERVER_PUBLIC_URL`)
- `NN_MONOGRAPH_HOST` - Override the default monograph server URL (defaults to `MONOGRAPH_PUBLIC_URL`)
- `NN_NOTESNOOK_HOST` - Override the default monograph server URL (defaults to `NOTESNOOK_APP_PUBLIC_URL`)

**Note**: These variables are optional and will automatically use your self-hosted service URLs if not specified.

Expand Down
6 changes: 4 additions & 2 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build Stage
FROM node:20 AS builder
FROM node:22 AS builder

WORKDIR /app

Expand All @@ -11,19 +11,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends git \
RUN git clone --depth=1 https://github.com/beardedtek/notesnook.git .

# Install dependencies (monorepo root)
RUN npm ci
RUN npm ci --ignore-scripts --prefer-offline --no-audit && npm run bootstrap -- --scope=web

# Accept build-time environment variables for server URLs
ARG NN_API_HOST
ARG NN_AUTH_HOST
ARG NN_SSE_HOST
ARG NN_MONOGRAPH_HOST
ARG NN_NOTESNOOK_HOST

# Set environment variables for the build process
ENV NN_API_HOST=${NN_API_HOST}
ENV NN_AUTH_HOST=${NN_AUTH_HOST}
ENV NN_SSE_HOST=${NN_SSE_HOST}
ENV NN_MONOGRAPH_HOST=${NN_MONOGRAPH_HOST}
ENV NN_NOTESNOOK_HOST=${NN_NOTESNOOK_HOST}

# Build just the web app
RUN npm run build:web
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ services:
NN_AUTH_HOST: ${AUTH_SERVER_PUBLIC_URL}
NN_SSE_HOST: ${SSE_SERVER_PUBLIC_URL}
NN_MONOGRAPH_HOST: ${MONOGRAPH_PUBLIC_URL}
NN_NOTESNOOK_HOST: ${NOTESNOOK_APP_PUBLIC_URL}
ports:
- "8888:80"
restart: always
Expand Down