# Self-host OrientDB

> A multi model database for graphs and documents with the Studio web console, a generated root password and data volumes. The binary protocol port 2424 stays private.

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

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| orientdb | orientdb | 3.2.58 | 2480, 2424 | orientdb_databases -> /orientdb/databases; orientdb_backup -> /orientdb/backup |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| orientdb | ORIENTDB_ROOT_PASSWORD | generated |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/orientdb/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 Studio and sign in as root with the generated password from the app secrets.

## Questions

### Can I deploy OrientDB 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 OrientDB, 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 orientdb:3.2.58 is what you deploy there.

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