mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
📚 Improve documentation about how MongoDB can be used
This commit is contained in:
parent
92252bfa99
commit
289770357a
|
@ -69,18 +69,18 @@ n8n start \
|
||||||
```
|
```
|
||||||
|
|
||||||
Or you can provide a custom configuration file by copying the default
|
Or you can provide a custom configuration file by copying the default
|
||||||
configuration file [(config/defaults.ts)](https://github.com/n8n-io/n8n/blob/master/packages/cli/config/default.ts) and then set the
|
configuration file [(config/defaults.ts)](https://github.com/n8n-io/n8n/blob/master/packages/cli/config/default.ts).
|
||||||
path to it as environment variable `NODE_CONFIG_DIR`.
|
Make sure the file is also called `default.ts` and then set the path of the
|
||||||
|
parent directory as environment variable `NODE_CONFIG_DIR`.
|
||||||
|
|
||||||
For example like this:
|
For example like this:
|
||||||
```bash
|
```bash
|
||||||
export NODE_CONFIG_DIR=/path-to-my-config
|
export NODE_CONFIG_DIR=/directory-containing-config-file
|
||||||
```
|
```
|
||||||
|
|
||||||
In the file change then the
|
Change in the config file the value under `database.type` from `sqlite`
|
||||||
setting under `database.type` from `sqlite` to `mongodb` and adjust the Mongo
|
to `mongodb` and adjust the Mongo connection URL
|
||||||
connection URL `database.mongodbConfig` accordingly.
|
`database.mongodbConfig` accordingly.
|
||||||
|
|
||||||
|
|
||||||
n8n will then read your custom configuration and use MongoDB instead.
|
n8n will then read your custom configuration and use MongoDB instead.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue