# Self-host Linkwarden

> A bookmark manager that archives full page snapshots, not just links, so pages stay readable.

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

## Requirements
- Memory: about 1 GiB
- 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 | linkwarden_db_data -> /var/lib/postgresql/data |
| linkwarden | ghcr.io/linkwarden/linkwarden | v2.9.3 | 3000 | linkwarden_data -> /data/data |
| meilisearch | getmeili/meilisearch | v1.11.1 | none | linkwarden_meili_data -> /meili_data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| linkwarden | DATABASE_URL | generated |
| linkwarden | MEILI_HOST | preset |
| linkwarden | MEILI_MASTER_KEY | generated |
| linkwarden | NEXTAUTH_SECRET | generated |
| linkwarden | NEXTAUTH_URL | preset |
| meilisearch | MEILI_MASTER_KEY | generated |
| meilisearch | MEILI_NO_ANALYTICS | preset |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/linkwarden/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 Linkwarden 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 linkwarden for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, ghcr.io/linkwarden/linkwarden:v2.9.3, getmeili/meilisearch:v1.11.1 is what you deploy there.

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