This guide shows you how to use MongoDB, a source-available, cross-platform, document-oriented database program.
To run it, follow these steps:
Install the unikraft CLI.
You need a BuildKit builder. The easiest way to get one is via Docker.
Alternatively, you can also directly set up and use BuildKit, see the quick start.
Current Mongosh Log ID: 69d7a077dc5d28998344ba88Connecting to: mongodb://bold-brook-khkwv7of.fra.unikraft.app:27017/?tls=true&directConnection=true&appName=mongosh+2.8.2Using MongoDB: 6.0.13Using Mongosh: 2.8.2For mongosh info see: https://docs.mongodb.com/mongodb-shell/To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).You can opt-out by running the disableTelemetry() command.test>
You can list information about the instance by running:
Code
unikraft instances list
Code
METRO NAME STATE IMAGE ARGS MEMORY VCPUS FQDN CREATEDfra mongodb-6tiuu running <my-org>/mongodb 1.0GiB 1 bold-brook-khkwv7of.fra.unikraft.app 2 minutes ago
When done, you can remove the instance:
Code
unikraft instances delete mongodb-6tiuu
Using volumes
You can use volumes for data persistence for your MongoDB instance.
For that you would first create a volume: