# Self-host RethinkDB

> A document database with live query feeds and a web admin console, on the official image with a data volume. The console has no login, so restrict access before exposing it. Client driver port 28015 stays private.

- Page: https://levelrail.com/templates/rethinkdb/
- JSON: https://levelrail.com/templates/rethinkdb.json
- Category: Database Tools
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/rethinkdb/rethinkdb
- Upstream docs: https://rethinkdb.com/docs

## Requirements
- Memory: about 512 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 2.4.4-bookworm-slim

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| rethinkdb | rethinkdb | 2.4.4-bookworm-slim | 8080, 28015 | rethink_data -> /data |

## Deploy

### CLI

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

### API

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

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

## First run
1. Open the console to manage tables, and point drivers from this project at rethinkdb:28015.

## Questions

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

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for RethinkDB, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image rethinkdb:2.4.4-bookworm-slim is what you deploy there.

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