Levelrail
Skip to content

Self-host Weblate with Docker ​

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

This page describes the Levelrail template for Weblate (Developer Tools). It deploys the services below as one Docker Compose app on your own server.

Project site: https://docs.weblate.org.

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbpostgres:16-alpinenone
weblate_db_data -> /var/lib/postgresql/data
redisredis:7-alpinenone
weblate_redis_data -> /data
weblateweblate/weblate:5.158080
weblate_data -> /app/data
weblate_cache -> /app/cache

Environment variables ​

ServiceVariableValue
dbPOSTGRES_DBPreset in the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset in the template
redisREDIS_PASSWORDGenerated at deploy
weblatePOSTGRES_DATABASEPreset in the template
weblatePOSTGRES_HOSTPreset in the template
weblatePOSTGRES_PASSWORDGenerated at deploy
weblatePOSTGRES_USERPreset in the template
weblateREDIS_HOSTPreset in the template
weblateREDIS_PASSWORDGenerated at deploy
weblateREDIS_PORTPreset in the template
weblateWEBLATE_ADMIN_PASSWORDGenerated at deploy
weblateWEBLATE_SITE_DOMAINPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Weblate with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Weblate. Review the Compose body and deploy.

With the CLI:

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

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Developer Tools templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.