mirror of https://github.com/dapr/docs.git
Updatd Docker too
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
parent
75161a0bfe
commit
9af6491271
|
@ -82,16 +82,15 @@ If you wish to use MongoDB as an actor store, add this metadata option to your C
|
||||||
{{< tabs "Self-Hosted" "Kubernetes" >}}
|
{{< tabs "Self-Hosted" "Kubernetes" >}}
|
||||||
|
|
||||||
{{% codetab %}}
|
{{% codetab %}}
|
||||||
You can run MongoDB locally using Docker:
|
You can run a single MongoDB instance locally using Docker:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run --name some-mongo -d mongo
|
docker run --name some-mongo -d mongo
|
||||||
```
|
```
|
||||||
|
|
||||||
You can then interact with the server at `localhost:27017`.
|
You can then interact with the server at `localhost:27017`. If you do not specify a `databaseName` value in your component definition, make sure to create a database named `daprStore`.
|
||||||
|
|
||||||
If you do not specify a `databaseName` value in your component definition, make sure to create a database named `daprStore`.
|
|
||||||
|
|
||||||
|
In order to use the MongoDB state store for transactions and as an actor state store, you will need to run MongoDB as a Replica Set. Please refer to [the official documentation](https://www.mongodb.com/compatibility/deploying-a-mongodb-cluster-with-docker) for how to create a 3-node Replica Set using Docker.
|
||||||
{{% /codetab %}}
|
{{% /codetab %}}
|
||||||
|
|
||||||
{{% codetab %}}
|
{{% codetab %}}
|
||||||
|
|
Loading…
Reference in New Issue