# Self-host Argilla

> A collaboration tool for labelling and curating datasets for language model work.

- Page: https://levelrail.com/templates/argilla/
- JSON: https://levelrail.com/templates/argilla.json
- Category: AI
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/argilla-io/argilla
- Upstream docs: https://docs.argilla.io/

## Requirements
- Memory: about 2 GiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v2.8.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| argilla | argilla/argilla-server | v2.8.0 | 6900 | argilla_data -> /var/lib/argilla |
| db | postgres | 16-alpine | none | db_data -> /var/lib/postgresql/data |
| elasticsearch | docker.elastic.co/elasticsearch/elasticsearch | 8.12.2 | none | elastic_data -> /usr/share/elasticsearch/data |
| redis | redis | 7-alpine | none | redis_data -> /data |
| worker | argilla/argilla-server | v2.8.0 | none | argilla_data -> /var/lib/argilla |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| argilla | API_KEY | generated |
| argilla | ARGILLA_DATABASE_URL | generated |
| argilla | ARGILLA_ELASTICSEARCH | preset |
| argilla | ARGILLA_HOME_PATH | preset |
| argilla | ARGILLA_REDIS_URL | generated |
| argilla | PASSWORD | generated |
| argilla | USERNAME | preset |
| argilla | WORKSPACE | preset |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| elasticsearch | ES_JAVA_OPTS | preset |
| elasticsearch | cluster.name | preset |
| elasticsearch | cluster.routing.allocation.disk.threshold_enabled | preset |
| elasticsearch | discovery.type | preset |
| elasticsearch | node.name | preset |
| elasticsearch | xpack.security.enabled | preset |
| redis | REDIS_PASSWORD | generated |
| worker | ARGILLA_DATABASE_URL | generated |
| worker | ARGILLA_ELASTICSEARCH | preset |
| worker | ARGILLA_HOME_PATH | preset |
| worker | ARGILLA_REDIS_URL | generated |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/argilla/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 Argilla 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 argilla for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image argilla/argilla-server:v2.8.0, postgres:16-alpine, docker.elastic.co/elasticsearch/elasticsearch:8.12.2, redis:7-alpine, argilla/argilla-server:v2.8.0 is what you deploy there.

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