Files
Docwell/Docs-Site/guide/configuration.md
T
tajniak81andClaude Opus 5.5 dbe49b892f
CI / go (Server) (push) Canceled after 0s
CI / go (Web-App) (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (ubuntu-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / mobile (push) Canceled after 0s
CI / docker (push) Canceled after 0s
Docs / build (push) Canceled after 0s
Docs / deploy (push) Canceled after 0s
Release / images (., Docker-AIO/Dockerfile, docwell) (push) Canceled after 0s
Release / images (., Server/Dockerfile, docwell-server) (push) Canceled after 0s
Release / images (., Web-App/Dockerfile, docwell-web) (push) Canceled after 0s
Release / images (Database, Database/Dockerfile, docwell-db) (push) Canceled after 0s
Add multi-arch release images and a documentation site
Release: pushing a v* tag builds docwell-db, docwell-server, docwell-web
and the all-in-one image for linux/amd64 and linux/arm64 and pushes
them to GHCR, tagged with the version and latest. The build stages run
on the build machine's platform and Go cross-compiles, so arm64 needs no
emulation except for the final apk step (checked by building the server
image for arm64). The compose files name the released images, so
`docker compose up -d` runs a release and `--build` still builds the
checkout; DOCWELL_REGISTRY and DOCWELL_VERSION pick them.

Docs: Docs-Site is a VitePress site with a quick start, every
configuration variable, reverse-proxy setups, backups and upgrades, a
user guide, people and access, the admin panel and the API. CI builds
it, and the Docs workflow publishes it to GitHub Pages. It lives outside
docs/, which stays local planning material.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:45:16 +01:00

60 lines
3.7 KiB
Markdown

# 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](./administration); 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. |
## 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_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. |
| `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 |