# Self-host Weblate

> A continuous localization system for translating software with a web-based editor and review flow.

- Page: https://levelrail.com/templates/weblate/
- JSON: https://levelrail.com/templates/weblate.json
- Category: Developer Tools
- Licence: GPL-3.0-or-later (Copyleft license)
- Source: https://github.com/WeblateOrg/weblate
- Upstream docs: https://docs.weblate.org

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | weblate_db_data -> /var/lib/postgresql/data |
| redis | redis | 7-alpine | none | weblate_redis_data -> /data |
| weblate | weblate/weblate | 5.15 | 8080 | weblate_data -> /app/data; weblate_cache -> /app/cache |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| redis | REDIS_PASSWORD | generated |
| weblate | POSTGRES_DATABASE | preset |
| weblate | POSTGRES_HOST | preset |
| weblate | POSTGRES_PASSWORD | generated |
| weblate | POSTGRES_USER | preset |
| weblate | REDIS_HOST | preset |
| weblate | REDIS_PASSWORD | generated |
| weblate | REDIS_PORT | preset |
| weblate | WEBLATE_ADMIN_PASSWORD | generated |
| weblate | WEBLATE_SITE_DOMAIN | preset |

## Deploy

### CLI

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

### API

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

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