Files
tajniak81andClaude Opus 5.5 3c7403ddf9 Create the first superadmin from DOCWELL_ADMIN_EMAIL on start
When DOCWELL_ADMIN_EMAIL and DOCWELL_ADMIN_PASSWORD are set (and
optionally DOCWELL_ADMIN_NAME), docwell-server creates that account as
superadmin on start while the instance has no accounts. Once any account
exists it changes nothing, so restarts never reset the password or a role
changed in the admin panel. Without them, the first sign-up still wins.

Pass the variables through every compose file, document them in the
.env examples and the configuration, access and quick-start guides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 22:32:29 +01:00

2.8 KiB

Quick start

Docwell runs as Docker containers. You need Docker with the Compose plugin on a machine with at least 1 GB of free memory. Images are published for linux/amd64 and linux/arm64, so a Raspberry Pi 4 or an ARM cloud server works too.

There are two ways to run it:

Setup Containers Use it for
All-in-one one, on port 3000 trying Docwell, small teams, a home server
Separate services database, API server, web app production, scaling, putting each part behind its own proxy

All-in-one

git clone https://github.com/docwell/docwell.git
cd docwell/Docker-AIO
PB_ADMIN_PASSWORD='choose-a-long-password' docker compose up -d

Open http://localhost:3000. The admin panel is at http://localhost:3000/admin/.

PB_ADMIN_PASSWORD protects the internal database account. Keep it secret and keep using the same value: the server signs file links with a key derived from it.

Separate services

git clone https://github.com/docwell/docwell.git
cd docwell/Docker
cp .env.example .env

Edit .env: at least set PB_ADMIN_PASSWORD, and set DOCWELL_PUBLIC_URL and DOCWELL_WEB_URL to the addresses people will use. Then start it:

docker compose up -d

To build the images from your checkout instead of pulling released ones, add --build.

First steps

  1. Create the first account. The first person to sign up becomes the superadmin and can open the admin panel. Do this right away on a server others can reach, or set DOCWELL_ADMIN_EMAIL and DOCWELL_ADMIN_PASSWORD in .env before the first start so the server creates it for you.
  2. Set up email in Admin panel → Email, then send a test email. Without email, people cannot verify their address or reset a forgotten password, and invites have to be passed on by hand (Docwell shows the link).
  3. Decide who may join in Admin panel → Authentication: turn self-service sign-up off and invite people instead, or limit sign-up to your company's email domains.
  4. Create an organization and a workspace. In the web app, open Settings → Organization and create one; you become its admin. Then create a workspace, add spaces, and start writing.

Try email locally

The separate-services setup ships a development mail catcher. In .env set DOCWELL_SMTP_HOST=mailpit and DOCWELL_SMTP_PORT=1025, start with the dev profile and read the emails at http://localhost:8025:

docker compose --profile dev up -d

Next