Skip to content

Docker production notes

Allan Nordhøy edited this page Apr 23, 2018 · 12 revisions

Set up 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 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