# Self-host Label Studio

> A flexible data labeling tool for text, images, audio, and video, with export to common ML formats.

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

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| label-studio | heartexlabs/label-studio | 1.21.0 | 8080 | label_studio_data -> /label-studio/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| label-studio | LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK | preset |
| label-studio | LABEL_STUDIO_PASSWORD | generated |
| label-studio | LABEL_STUDIO_USERNAME | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy label-studio --name my-label-studio
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/label-studio/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 Label Studio 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 Label Studio, 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 heartexlabs/label-studio:1.21.0 is what you deploy there.

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