# Self-host LibreTranslate

> A free and open machine translation API that runs entirely on your own hardware.

- Page: https://levelrail.com/templates/libretranslate/
- JSON: https://levelrail.com/templates/libretranslate.json
- Category: Developer Tools
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/LibreTranslate/LibreTranslate
- Upstream docs: https://github.com/LibreTranslate/LibreTranslate

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| libretranslate | libretranslate/libretranslate | v1.9.6 | 5000 | libretranslate_data -> /home/libretranslate/.local |

## Deploy

### CLI

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

### API

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

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