# Self-host Chroma

> A developer-friendly embedding database for AI applications, served over a simple HTTP API. Open to anyone who can reach it, so reach it from other services in this project at chroma:8000, or attach a domain only behind Basic Auth. Not published on the host.

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

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| chroma | ghcr.io/chroma-core/chroma | 1.0.0 | 8000 | chroma_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| chroma | ANONYMIZED_TELEMETRY | preset |
| chroma | IS_PERSISTENT | preset |
| chroma | PERSIST_DIRECTORY | preset |

## Deploy

### CLI

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

### API

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

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