MongoDB
A document-oriented NoSQL database designed for scalability and flexibility.
databasenosql
Usage
import { defineConfig } from 'dockup/config';
import { mongodb } from 'dockup/services';
export default defineConfig({
services: [
mongodb()
],
});
Metadata
This service automatically exposes metadata.
dockup metadata
Connection URL: mongodb://root:password@localhost:27017/database
Can be used to connect to MongoDB
Admin URL: mongodb://root:password@localhost:27017/admin
Connection string for admin database
The above are the metadata generated when using this service with the default options.
Options
Prop | Type | Default |
---|---|---|
port? | number | 27017 |
database? | string | "database" |
username? | string | "root" |
password? | string | "password" |
auth? | boolean | true |
replicaSet? | string | undefined |
name? | string | - |
image? | string | - |
extend? | ((service: ContainerService) => ContainerService) | - |