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>
74 lines
2.8 KiB
Markdown
74 lines
2.8 KiB
Markdown
# Quick start
|
|
|
|
Docwell runs as Docker containers. You need [Docker](https://docs.docker.com/get-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
|
|
|
|
```bash
|
|
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
|
|
|
|
```bash
|
|
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:
|
|
|
|
```bash
|
|
docker compose up -d
|
|
```
|
|
|
|
- Web app: <http://localhost:3000>
|
|
- API: <http://localhost:8080/api/v1/version>
|
|
- Admin panel: <http://localhost:8080/admin/>
|
|
|
|
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>:
|
|
|
|
```bash
|
|
docker compose --profile dev up -d
|
|
```
|
|
|
|
## Next
|
|
|
|
- [Configuration](./configuration) lists every setting.
|
|
- [Behind a reverse proxy](./reverse-proxy) adds HTTPS and your own domain.
|
|
- [Backups and upgrades](./backups-upgrades) keeps your data safe.
|