Weblate is a translation tool with tight version control integration featuring a simple and clean user interface, propagation of translations across components, quality checks and automatic linking to source files.
Weblate for Docker (unofficial) 🐳
git clone https://github.com/beevelop/docker-weblate && cd docker-weblate
# Adjust the docker-compose.yml to your needs
docker-compose up
Navigate to http://*YOURHOST*:8000
and login with admin:Un1c0rn
.
# Launch a postgres database (POSTGRES_USER and POSTGRES_PASSWORD are mandatory)
docker run --name dev-weblate-postgres -e POSTGRES_USER=weblate -e POSTGRES_PASSWORD=weblate -d kiasaki/alpine-postgres
# Launch weblate linked to the database
docker run -it -p 8000:8000 --name dev-weblate \
-e WEBLATE_ADMIN_NAME=john \
-e [email protected] \
-e [email protected] \
--link dev-weblate-postgres:database beevelop/weblate
You should then be able to access Weblate via http://*YOUR_HOST*:8000
.
Attention: To persist changes you need to bind the volumes
/app/data
and/app/config
for the Weblate container and the respective volumes for the Postgres container.
WEBLATE_DEBUG
(default:1
): Enables debugging functionalityWEBLATE_ALLOWED_HOSTS
- Coma-separated list of allowed hosts (e.g.
weblate.beevelop.com
) - Required if
WEBLATE_DEBUG
is disabled!
- Coma-separated list of allowed hosts (e.g.
WEBLATE_LOCK_DOWN
(default: not set)- If set, Weblate requires logging in to access anything (seems quite suitable for private projects)
WEBLATE_ADMIN_NAME
WEBLATE_ADMIN_EMAIL
WEBLATE_EMAIL
SECRET_KEY
(this is required for a production-ready setup)- Might be mandatory in future releases!
LANGUAGE_CODE
(default: en-us)TIME_ZONE
(default: UTC)SITE_TITLE
(default: Weblate)ADMIN_PASSWORD
(default: Un1c0rn)REGISTRATION_OPEN
(default:True
): Set toFalse
to disable registration functionality
EMAIL_HOST
EMAIL_HOST_USER
EMAIL_HOST_PASSWORD
EMAIL_PORT
(default:587
)
SOCIAL_AUTH_GITHUB_KEY
SOCIAL_AUTH_GITHUB_SECRET
SOCIAL_AUTH_BITBUCKET_KEY
SOCIAL_AUTH_BITBUCKET_SECRET
SOCIAL_AUTH_FACEBOOK_KEY
SOCIAL_AUTH_FACEBOOK_SECRET
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET
SOCIAL_AUTH_GITLAB_KEY
SOCIAL_AUTH_GITLAB_SECRET