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
This section shows how to customize deployment configurations. If you have already started a container, you need to restart the container for the new configurations to take effect. Following are the ways to **restart** your container:
63
+
64
+
{% tabs %}
65
+
{% tab title="Docker-Compose (Recommend)" %}
66
+
One single command:
67
+
68
+
```
69
+
docker-compose up
70
+
```
71
+
72
+
It picks up configuration changes by stopping containers already in service and recreating new ones.
73
+
{% endtab %}
74
+
75
+
{% tab title="Docker" %}
76
+
Run the following commands to stop, remove the container already in service, and start up a new one using the newly customized deployment command.
77
+
78
+
```docker
79
+
docker stop openblocks
80
+
docker rm openblocks
81
+
# run your new docker run command
82
+
```
83
+
{% endtab %}
84
+
{% endtabs %}
85
+
86
+
### Use your own MongoDB
87
+
88
+
By default Openblocks uses the built-in MongoDB installed inside the container, and you can replace it with your own MongoDB cluster.
89
+
90
+
{% tabs %}
91
+
{% tab title="Docker-Compose" %}
92
+
Add an environment variable `MONGODB_URI` in `docker-compose.yml` downloaded in your working directory.\
By default the supervisor will run under the user `uid=9001`. You can specify the uid by adding a docker environment variable `LOCAL_USER_ID` and setting its value.
109
+
By default the supervisor will run under the user `uid=9001`. You can specify the uid by adding a docker environment variable `LOCAL_USER_ID` and setting its value to a **Number**, such as `10010`.
63
110
64
111
{% tabs %}
65
112
{% tab title="Docker-Compose" %}
66
113
Add an environment variable `LOCAL_USER_ID` in `docker-compose.yml` downloaded in your working directory.\
0 commit comments