-
Create new app
dokku apps:create mongo-express
-
Link database to the app
dokku mongo:link database mongo-express
-
Deploy existing container
dokku git:from-image mongo-express mongo-express
-
Expose correect port
dokku proxy:ports-set mongo-express http:80:8081
-
Configure mongo-express
You can get the admin password from /var/lib/dokku/services/mongo/database/ROOTPASSWORD
and the rest of the required information from the exposed MONGO_URL on the app
dokku config:set mongo-express ME_CONFIG_MONGODB_URL=mongodb://admin:[email protected]:27017
dokku config:set mongo-express ME_CONFIG_BASICAUTH=true ME_CONFIG_BASICAUTH_USERNAME=<xxx> ME_CONFIG_BASICAUTH_PASSWORD=<xxx>