-
Notifications
You must be signed in to change notification settings - Fork 3
Deployment
A Lee edited this page Sep 29, 2016
·
5 revisions
- Copy appropriate development.yml or production.yml to docker-compose.yml. Edit postgres database password, can generate one via
import os os.urandom(24).encode('hex') # or import random,string ''.join([random.SystemRandom().choice("{}{}".format(string.ascii_letters, string.digits)) for i in range(63)])
- Copy settings/local.py.example to settings/local.py and set SECRET_KEY and db password
- Run
docker-compose build
- Check sanity of configuration, then run
docker-compose up -d nginx
- Upgrading postgres is tricky, simplest at the moment is to dump database and reload from dump in upgraded version (currently pinned to 9.6) - https://github.com/docker-library/postgres/issues/37