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
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>
73 lines
2.7 KiB
Markdown
73 lines
2.7 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.
|
|
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.
|