Installation Guide: Heroku - mongodb/mlab-data-api GitHub Wiki
heroku login
heroku create <APP>
heroku config:set --app <APP> MLAB_DATA_API_KEY=<API_KEY>
heroku config:set --app <APP> MLAB_DATA_API_CONFIG=<CONFIG>
heroku container:login
docker pull quay.io/mongodb/mlab-data-api:latest
docker tag quay.io/mongodb/mlab-data-api:latest registry.heroku.com/<APP>/web
docker push registry.heroku.com/<APP>/web
heroku container:release --app <APP> web
- Replace
<APP>
with a name for your mLab Data API deployment. It can be anything you want but must be unique. - Replace
<API_KEY>
with the API key you would like to use - Replace
<CONFIG>
with your JSON-formatted configuration settings (see below)
- We suggest using JSON format for your configuration in Heroku
- Do NOT configure a
port
in your configuration. Heroku will set this up for you - See Configuration for more details
Once deployed, your mLab Data API deployment can be reached at:
https://<APP>.herokuapp.com/api/1