# Self-host Calibre

> The Calibre e-book manager in a browser desktop session, for organising, converting and reading your library.

- Page: https://levelrail.com/templates/calibre/
- JSON: https://levelrail.com/templates/calibre.json
- Category: Media
- Licence: GPL-3.0-only (Copyleft license)
- Source: https://github.com/kovidgoyal/calibre
- Upstream docs: https://manual.calibre-ebook.com/

## Requirements
- Memory: about 1 GiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 9.18.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| calibre | lscr.io/linuxserver/calibre | 9.18.0 | 8080 | config -> /config |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| calibre | PGID | preset |
| calibre | PUID | preset |
| calibre | TZ | preset |

## Deploy

### CLI

```bash
levelrail-cli templates install calibre --name my-calibre
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain calibre=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/calibre/install \
  -d '{
    "name": "my-calibre"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## First run
1. Open the address, create your library on first launch and import books from the file dialog.

## Questions

### Can I deploy Calibre 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 calibre for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image lscr.io/linuxserver/calibre:9.18.0 is what you deploy there.

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