Files
Docwell/Docs-Site/guide/configuration.md
T
tajniak81andClaude Opus 5.5 154fed2a06
CI / go (Server) (push) Failing after 22s
CI / go (Web-App) (push) Canceled after 0s
CI / frontend (push) Failing after 26s
CI / desktop (ubuntu-latest) (push) Failing after 23s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / mobile (push) Failing after 19s
CI / docker (push) Failing after 26s
Docs / build (push) Failing after 29s
Docs / deploy (push) Skipped
Release / images (., Docker-AIO/Dockerfile, docwell) (push) Failing after 20s
Release / images (., Server/Dockerfile, docwell-server) (push) Failing after 31s
Release / images (., Web-App/Dockerfile, docwell-web) (push) Failing after 28s
Release / images (Database, Database/Dockerfile, docwell-db) (push) Failing after 18s
Release / desktop (Desktop-App/bin/*.deb Desktop-App/bin/*.rpm Desktop-App/bin/*.AppImage , linux, ubuntu-latest, linux:create:deb linux:create:rpm linux:create:appimage) (push) Failing after 14s
Release / desktop (Desktop-App/bin/*-installer.exe, windows, windows-latest, windows:package) (push) Canceled after 0s
Release / release (push) Canceled after 0s
Run the release workflow on Gitea
- Images go to the registry of the Gitea that runs the workflow (or the
  REGISTRY variable), signed in with the REGISTRY_TOKEN secret. A plain
  http Gitea gets a plain http registry in BuildKit's config, and the
  credentials are written straight into the client config, since docker
  login refuses such registries.
- The build cache is kept in the registry, not the GitHub Actions cache.
- One release job creates the Gitea release through its API once every
  build has passed, and attaches the Windows and Linux installers.
- macOS is left out: Gitea has no hosted Mac runners, so the DMG is
  built by hand. The docs link comes from the DOCS_URL variable instead
  of a github.io address.
- AppImages are built without FUSE, which runner containers lack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 15:49:22 +01:00

4.3 KiB

Configuration

Docwell is configured with environment variables, set in .env (separate services) or in the environment: section of docker-compose.yml. Many settings can also be changed later in the admin panel; where both exist, the table says which wins.

Database (docwell-db)

Variable Default What it does
PB_ADMIN_EMAIL admin@docwell.test The internal PocketBase superuser. docwell-server signs in with it.
PB_ADMIN_PASSWORD (required) Its password. Also the key file links are signed with: changing it ends open file links (they renew on reload).
DOCWELL_WEB_URL http://localhost:3000 The web app's address. Links in emails open it.
DOCWELL_APP_NAME The name in emails. When set it is applied at every start and overrides Branding.
DOCWELL_MAIL_FROM no-reply@docwell.localhost Sender address. When set it overrides Email → Sender address at every start.
DOCWELL_SMTP_HOST Mail server. When set, all DOCWELL_SMTP_* values are applied at every start and override Admin panel → Email. Leave it empty to manage mail in the admin panel.
DOCWELL_SMTP_PORT 587
DOCWELL_SMTP_USERNAME
DOCWELL_SMTP_PASSWORD
DOCWELL_SMTP_TLS false true for implicit TLS (usually port 465). Port 587 upgrades with STARTTLS on its own.

API server (docwell-server)

Variable Default What it does
DOCWELL_ADDR :8080 Listen address.
DOCWELL_PB_URL http://127.0.0.1:8090 Where docwell-db is. Keep it on a private network.
DOCWELL_PB_EMAIL, DOCWELL_PB_PASSWORD (required) The PocketBase superuser (PB_ADMIN_EMAIL, PB_ADMIN_PASSWORD).
DOCWELL_PUBLIC_URL http://localhost:8080 The API's public address. Exported pages link attachments here.
DOCWELL_WEB_URL http://localhost:3000 The web app's address, for invite and share links.
DOCWELL_CORS_ORIGINS http://localhost:5173,http://localhost:3000 Comma-separated origins allowed to call the API from a browser: the web app's address.
DOCWELL_SIGNUP_ENABLED true Self-service sign-up, until a superadmin saves Authentication in the admin panel.
DOCWELL_SIGNUP_DOMAINS Comma-separated email domains allowed to sign up (empty: any), with the same rule.
DOCWELL_MAX_UPLOAD_MB 50 Largest attachment, 1 to 100.
DOCWELL_DATA_DIR ./data (/data in the image) The search index. It is rebuilt from the database when missing, so a volume is optional but makes restarts faster.
DOCWELL_SHUTDOWN_TIMEOUT 15s How long to wait for requests and open pages to finish saving on shutdown.
DOCWELL_AUDIT_RETENTION_DAYS 365 How long the audit log keeps entries. 0 keeps them forever.
DOCWELL_WEBHOOKS_ALLOW_LOCAL false Let webhooks call loopback and link-local addresses. For development only.

Web app (docwell-web)

Variable Default What it does
DOCWELL_WEB_ADDR :3000 Listen address.
DOCWELL_API_URL http://localhost:8080 The API's address, as browsers reach it.
DOCWELL_COLLAB_URL ws://localhost:8080/collab The live-editing WebSocket (wss:// behind HTTPS).
DOCWELL_DRAWIO_URL The Draw.io editor to embed for diagrams. Empty uses the public https://embed.diagrams.net; point it at a self-hosted jgraph/drawio to keep drawings on your network.
DOCWELL_PROXY_TARGET When set (for example http://server:8080), docwell-web forwards /api, /collab and /admin to docwell-server, so browsers only talk to one address. The all-in-one image does this.

Compose

Variable Default What it does
DOCWELL_REGISTRY ghcr.io/docwell Where docker compose pull gets the images. For images released on a Gitea server, <gitea host>/<owner>. A Gitea served over plain http must be listed under insecure-registries in Docker's daemon.json.
DOCWELL_VERSION latest Which release to run, for example 0.1.0.

Volumes

Volume Holds Back it up?
pb_data (docwell-db /pb_data) the database, uploaded files (unless S3 is on), backups Yes
server_data (docwell-server /data) the search index No: it is rebuilt from the database