You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentdb-local/index.md
+19-15Lines changed: 19 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# DocumentDB-local
2
-
DocumentDB is available as a Docker container. It supports running on a wide variety of processors and operating systems and make it easy to try out and test DocumentDB.
2
+
DocumentDB Local provides a lightweight, containerized environment for developing and testing applications locally, including prototyping and integration testing.
3
3
4
4
5
5
## Prerequisites
@@ -8,7 +8,7 @@ DocumentDB is available as a Docker container. It supports running on a wide var
8
8
9
9
## Installation
10
10
11
-
Get the Docker container image using `docker pull`. The container image is published to the Github container registry as `ghcr.io/documentdb/documentdb/documentdb-local:latest`.
11
+
Get the Docker container image using `docker pull`.
| Print the settings to stdout from the container |`--help`, `-h`| N/A | N/A | N/A | Display information on available configuration |
59
-
60
-
To be continued...
61
-
## Feature support
62
-
63
-
Please refer to the documentdb documentation for currently supported features,
59
+
| Specify the username for DocumentDB. |`--username [value]`| Overrides `USERNAME` environment variable | STRING |`default_user`| Username for DocumentDB. |
60
+
| Specify the password for DocumentDB. |`--password [value]`| Overrides `PASSWORD` environment variable | STRING | NA | Password for DocumentDB. This is required. |
61
+
| The port of the DocumentDB endpoint. |`--documentdb-port [value]`| Overrides `PORT` environment variable | INT |`10260`| The port needs to published - for example, using `-p 10260:10260`. |
62
+
| Specify a directory for data. |`--data-path [value]`| Overrides `DATA_PATH` environment variable. | STRING |`/data`| For example, to set `/usr/documentdb/data` as data directory, add this option to `docker run` command: `--mount type=bind,source=./.local/data,target=/usr/documentdb/data`|
63
+
| Specify the owner. |`--owner [value]`| Overrides `OWNER` environment variable. | STRING |`documentdb`| Specify the owner for DocumentDB. |
64
+
| Specify whether to start the PostgreSQL server. |`--start-pg`| NA |`true`, `false`|`true`| Specify whether to start the PostgreSQL server. |
65
+
| Specify whether to create a user. |`--create-user`| NA |`true`, `false`|`true`| Specify whether to create a user. |
66
+
| Specify the port for the PostgreSQL server. |`--pg-port [value]`| Overrides `PG_PORT` environment variable | INT |`9712`| Specify the port for the PostgreSQL server. |
67
+
| Specify whether to allow external connections to PostgreSQL. |`--allow-external-connections`| Overrides `ALLOW_EXTERNAL_CONNECTIONS` environment variable |`true`, `false`|`false`| Specify whether to allow external connections to PostgreSQL. |
68
+
| Specify the path to a certificate for securing traffic. |`--cert-path [value]`| Overrides `CERT_PATH` environment variable. | STRING | NA | You need to mount this file into the container. For example, to set `/mycert.pfx`, add this option to `docker run` command: `--mount type=bind,source=./mycert.pfx,target=/mycert.pfx`. Can set `CERT_SECRET` to the password for the certificate. |
69
+
| Override default key with key in key file. |`--key-file [value]`| Overrides `KEY_FILE` environment variable. | STRING | NA | You need to mount this file into the container. For example, to set `/mykey.key`, add this option to `docker run` command: `--mount type=bind,source=./mykey.key,target=/mykey.key`|
70
+
| Enable telemetry data. |`--enable-telemetry`| Overrides `ENABLE_TELEMETRY` environment variable |`true`, `false`|`false`| Enable telemetry data sent to the usage collector (Azure Application Insights). |
71
+
| Specify log verbosity. |`--log-level [value]`| Overrides `LOG_LEVEL` environment variable. |`quiet`, `error`, `warn`, `info`, `debug`, `trace`|`info`| The verbosity of logs that will be emitted. |
64
72
65
73
66
-
## Limitations
67
-
68
-
In addition to features not yet supported or not planned, the following list includes current limitations of docuemntdb-lcoal:
74
+
## Feature support
69
75
70
-
To be added.
76
+
Please refer to the [documentdb](https://documentdb.io/docs/) documentation for currently supported features.
71
77
72
78
73
79
## Installing certificates
74
80
75
-
DocumentDB-local by default will generate new selef signed certificates each tome you start the container. To avoid certificate errors these can be installed on the local host. The example belw will show how to use this with `mongosh`.
81
+
By default, DocumentDB Local generates new self-signed certificates each time the container starts. To prevent certificate errors, install them on your local machine. The example below shows how to use this setup with `mongosh`.
76
82
77
83
### Get certificate
78
84
@@ -101,8 +107,6 @@ For mongosh info see: https://www.mongodb.com/docs/mongodb-shell/
> **Note:** During the transition to the Linux Foundation, Docker images may still be hosted on Microsoft's container registry. These will be migrated to the new DocumentDB organization as the transition completes.
> **Note:** Replace `<YOUR_USERNAME>` and `<YOUR_PASSWORD>` with your desired credentials. You must set these when creating the container for authentication to work.
31
30
>
32
31
> **Port Note:** Port `10260` is used by default in these instructions to avoid conflicts with other local database services. You can use port `27017` (the standard MongoDB port) or any other available port if you prefer. If you do, be sure to update the port number in both your `docker run` command and your connection string accordingly.
0 commit comments