Deployment to Dokku

On the server

dokku postgres:create wazimap-db \
-i kartoza/postgis \
-p <database user password> \
-r <root password> \
-I 11.0-2.5 \
-C "POSTGRES_MULTIPLE_EXTENSIONS=postgis,pg_trgm;POSTGRES_USER=postgres;POSTGRES_PASS=<database user password>"
  • Create a redis database

dokku redis:create wazimap-redis
  • Create a dokku app

dokku apps:create wazimap
  • Link the postgres and redis databases to the app

dokku postgres:link wazimap-db wazimap
dokku redis:link wazimap-redis wazimap
  • Change the database url to use postgis instead of postgres

  • Setup some environment variables

  • Setup the domain and SSL certificates

  • Setup the appropriate proxy ports:

Make sure that large uploads are allowed:

On your local machine

  • Add a git remote for deployment git remote add dokku:wazimap

  • Deploy git push dokku staging:master (if deploying the staging branch)

Last updated

Was this helpful?