Skip to content

Instantly share code, notes, and snippets.

@zaro
Created November 2, 2022 08:06
Show Gist options
  • Save zaro/c9eca0ef7878088b90f9a6724e8a4633 to your computer and use it in GitHub Desktop.
Save zaro/c9eca0ef7878088b90f9a6724e8a4633 to your computer and use it in GitHub Desktop.
Installing mongo-express in dokku
  1. Create new app

    dokku apps:create mongo-express

  2. Link database to the app

    dokku mongo:link database mongo-express

  3. Deploy existing container

    dokku git:from-image mongo-express mongo-express

  4. Expose correect port

    dokku proxy:ports-set mongo-express http:80:8081

  5. 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment