# Self-host Docmost

> An open-source, Notion-style collaborative wiki and documentation workspace.

- Page: https://levelrail.com/templates/docmost/
- JSON: https://levelrail.com/templates/docmost.json
- Category: Productivity
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/docmost/docmost
- Upstream docs: https://docmost.com/docs

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | docmost_db_data -> /var/lib/postgresql/data |
| docmost | docmost/docmost | 0.96.0 | 3000 | docmost_data -> /app/data/storage |
| redis | redis | 7.2-alpine | none | docmost_redis_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| docmost | APP_SECRET | generated |
| docmost | APP_URL | preset |
| docmost | DATABASE_URL | generated |
| docmost | REDIS_URL | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy docmost --name my-docmost
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/docmost/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Docmost on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id docmost for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, docmost/docmost:0.96.0, redis:7.2-alpine is what you deploy there.

Self-host Docmost, Docmost docker compose file, deploy Docmost on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
