Adios Docs

Deploying MongoDB

Adios provides official templates for running MongoDB databases, making it simple to deploy a NoSQL document store with built-in persistence.

Configuration

Create an adios.yaml file in the root of your project:

name: my-mongodb
template: mongodb:7
env:
  MONGO_INITDB_ROOT_USERNAME: root
  MONGO_INITDB_ROOT_PASSWORD: "secret://MONGO_INITDB_ROOT_PASSWORD"

Deploy

Before deploying, make sure to set your secrets using the CLI:

$ adios secret set MONGO_INITDB_ROOT_PASSWORD my_secure_password

Then you can run the deployment command:

$ adios up

Your MongoDB instance will be deployed with persistent storage automatically attached.