Docker container for Weblate
Detailed documentation is available in Weblate documentation:
https://docs.weblate.org/en/latest/admin/deployments.html#docker
-
Create a
docker-compose.override.yml
file with your settings.version: '2' services: weblate: ports: - "80:8000" environment: - WEBLATE_EMAIL_HOST=email.com - WEBLATE_EMAIL_HOST_USER=user - WEBLATE_EMAIL_HOST_PASSWORD=pass - WEBLATE_ALLOWED_HOSTS=your hosts - WEBLATE_ADMIN_PASSWORD=password for admin user
-
Build the instances
docker-compose build
-
Start up
docker-compose up
-
For more detailed instructions visit https://docs.weblate.org/en/latest/admin/deployments.html#docker
There are some cron jobs to run. You should set WEBLATE_OFFLOAD_INDEXING=1
when these are setup
*/5 * * * * cd /usr/share/weblate/; docker-compose run --rm weblate update_index
@daily cd /usr/share/weblate/; docker-compose run --rm weblate cleanuptrans
@hourly cd /usr/share/weblate-docker/; docker-compose run --rm weblate commit_pending --all --age=96