Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
/ docker-weblate Public archive

Weblate is a translation tool with tight version control integration and a simple & clean UI.

License

Notifications You must be signed in to change notification settings

beevelop/docker-weblate

Repository files navigation

Travis Pulls Size Layers Gemnasium Badges Beevelop

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) 🐳


Quick start with Docker Compose

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.

Manually

# 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 WEBLATE_ADMIN_EMAIL=john@example.com \
    -e WEBLATE_EMAIL=john@example.com \
    --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.

Configuration

General

  • WEBLATE_DEBUG (default: 1): Enables debugging functionality
  • WEBLATE_ALLOWED_HOSTS
    • Coma-separated list of allowed hosts (e.g. weblate.beevelop.com)
    • Required if WEBLATE_DEBUG is disabled!
  • 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 to False to disable registration functionality

Email

  • EMAIL_HOST
  • EMAIL_HOST_USER
  • EMAIL_HOST_PASSWORD
  • EMAIL_PORT (default: 587)

Social-Auth

  • 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

About

Weblate is a translation tool with tight version control integration and a simple & clean UI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published