Skip to content

Docker production notes

phlax edited this page Apr 21, 2018 · 12 revisions

Setup a docker environment

Following the guide at https://github.com/translate/pootle/wiki/Docker-setup-notes

Configure your pootle site

at a minimum you should set the POOTLE_SITE_NAME ...

https://github.com/translate/pootle/wiki/Docker-production-configuration-notes

Pull the required images

(host) makey pull production

Migrate the and initialize the database

The --no-projects flag is optional

(host) makey production pootle migrate
(host) makey production pootle initdb --no-projects

Create and a verify a superuser

assuming you create a user with username of "pootleadmin"

(host) makey production pootle createsuperuser
(host) makey production pootle verify_user pootleadmin

Start a web server

Pull and start the server with the following command

(host) makey web

this will generate self-signed certificates to get you started

Update server certificates

You can use certbot to update your server certificates

(host) makey certbot
(host) makey exec web nginx -s reload
Clone this wiki locally