Self-host Argilla with Levelrail
A collaboration tool for labelling and curating datasets for language model work.
- Authorargilla-io
- LicenceApache-2.0
- Memory2 GiB
- Services5
How to self-host Argilla
-
Pull the images
5 images are pulled on your server.
Show images
argilla/argilla-server:v2.8.0postgres:16-alpinedocker.elastic.co/elasticsearch/elasticsearch:8.12.2redis:7-alpineargilla/argilla-server:v2.8.0
-
Create the app
5 services start in a single Compose app, with 5 named volume mounts for your data, on port 6900.
-
Fill in the secrets
8 secrets are generated and stored encrypted, 14 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Argilla requirements
- Memory
- About 2 GiB
- Architectures
- amd64 unknown, arm64 unknown
- Ports
- 6900
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- Apache-2.0, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Argilla. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Argilla docs page.
Deploy Argilla your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Argilla from the CLI
levelrail-cli templates deploy argilla --name my-argilla Deploy Argilla with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/argilla/deploy Argilla configuration
Argilla services
| Service | Image | 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 |
Argilla environment variables
| Variable | Service | Value |
|---|---|---|
| API_KEY | argilla | Generated at deploy |
| ARGILLA_DATABASE_URL | argilla | Generated at deploy |
| ARGILLA_ELASTICSEARCH | argilla | Preset by the template |
| ARGILLA_HOME_PATH | argilla | Preset by the template |
| ARGILLA_REDIS_URL | argilla | Generated at deploy |
| PASSWORD | argilla | Generated at deploy |
| USERNAME | argilla | Preset by the template |
| WORKSPACE | argilla | Preset by the template |
Show all 22 variables
- POSTGRES_DBdbPreset by the template
- POSTGRES_PASSWORDdbGenerated at deploy
- POSTGRES_USERdbPreset by the template
- ES_JAVA_OPTSelasticsearchPreset by the template
- cluster.nameelasticsearchPreset by the template
- cluster.routing.allocation.disk.threshold_enabledelasticsearchPreset by the template
- discovery.typeelasticsearchPreset by the template
- node.nameelasticsearchPreset by the template
- xpack.security.enabledelasticsearchPreset by the template
- REDIS_PASSWORDredisGenerated at deploy
- ARGILLA_DATABASE_URLworkerGenerated at deploy
- ARGILLA_ELASTICSEARCHworkerPreset by the template
- ARGILLA_HOME_PATHworkerPreset by the template
- ARGILLA_REDIS_URLworkerGenerated at deploy
Ports and volumes
- Ports
- 6900
- Volumes
- 5 named mounts: argilla_data -> /var/lib/argilla, db_data -> /var/lib/postgresql/data, elastic_data -> /usr/share/elasticsearch/data, redis_data -> /data, argilla_data -> /var/lib/argilla
Argilla FAQ
How much memory does Argilla need?
The catalog lists about 2 GiB of memory for Argilla across its 5 services.
Does Argilla run on arm64?
For Argilla, arm64 support is not confirmed; amd64 is unknown.
What licence is Argilla under?
Argilla is licensed under Apache-2.0, which is permissive, with few conditions on reuse.
Does Argilla need configuration before it starts?
No. The template fills in its own defaults and generates secrets at deploy time.
Which database does Argilla bundle?
The template includes Postgres, Redis and Elasticsearch, running as its own service.
Which ports does Argilla use?
Argilla listens on port 6900 inside the stack.
Where does Argilla keep its data?
In named volumes: argilla_data mounted at /var/lib/argilla, db_data mounted at /var/lib/postgresql/data, elastic_data mounted at /usr/share/elasticsearch/data and redis_data mounted at /data.
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.