Skip to content

Commit 000e8d7

Browse files
Openblocks-docsgitbook-bot
Openblocks-docs
authored andcommitted
GitBook: [lowcoder-org#91] No subject
1 parent a35155d commit 000e8d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
75.5 KB
Loading

docs/self-hosting/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,22 @@ docker rm openblocks
8383
{% endtab %}
8484
{% endtabs %}
8585

86-
### Use your own MongoDB
86+
### Use your own MongoDB and Redis
8787

88-
By default Openblocks uses the built-in MongoDB installed inside the container, and you can replace it with your own MongoDB cluster.
88+
By default Openblocks uses the built-in MongoDB and Redis installed inside the container, and you can replace them with your own MongoDB and Redis clusters.
8989

9090
{% tabs %}
9191
{% tab title="Docker-Compose" %}
92-
Add an environment variable `MONGODB_URI` in `docker-compose.yml` downloaded in your working directory.\
93-
<img src="../.gitbook/assets/mongodb-uri.png" alt="" data-size="original">
92+
Add environment variables `MONGODB_URI` and `REDIS_URI` in `docker-compose.yml` downloaded in your working directory.\
93+
<img src="../.gitbook/assets/mongodb-redis-uri.png" alt="" data-size="original">
9494
{% endtab %}
9595

9696
{% tab title="Docker" %}
97-
Add an environment variable `MONGODB_URI` to the deployment command, as shown below:
97+
Add environment variables `MONGODB_URI` and `REDIS_URI` to the deployment command, as shown below:
9898

9999
{% code overflow="wrap" %}
100100
```docker
101-
docker run -d --name openblocks -e MONGODB_URI=YOUR_MONGO_URI -p 3000:3000 -v "$PWD/stacks:/openblocks-stacks openblocksdev/openblocks-ce
101+
docker run -d --name openblocks -e MONGODB_URI=YOUR_MONGODB_URI REDIS_URI=YOUR_REDIS_URI -p 3000:3000 -v "$PWD/stacks:/openblocks-stacks openblocksdev/openblocks-ce
102102
```
103103
{% endcode %}
104104
{% endtab %}

0 commit comments

Comments
 (0)