Skip to content

Commit 780a325

Browse files
Openblocks-docsgitbook-bot
Openblocks-docs
authored andcommitted
GitBook: [lowcoder-org#71] update docs: "Self-hosting"
1 parent 596ced5 commit 780a325

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
69.2 KB
Loading
69.2 KB
Loading

docs/self-hosting/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ docker run -d --name openblocks -p 3000:3000 -v "$PWD/stacks:/openblocks-stacks"
5757
{% endtab %}
5858
{% endtabs %}
5959

60+
{% hint style="info" %}
61+
By default the supervisor will run under the user <mark style="background-color:yellow;">`uid=9001`</mark>. You can specify the uid by adding a docker environment variable <mark style="background-color:yellow;">`LOCAL_USER_ID`</mark> and setting its value.
62+
63+
* Docker-compose: Add an environment variable <mark style="background-color:yellow;">`LOCAL_USER_ID`</mark> in <mark style="background-color:yellow;">`docker-compose.yml`</mark> downloaded in your working directory.\
64+
![](../.gitbook/assets/local-user-id.png)\
65+
After modifying the YML file, you may need to delete your current container and start a new one.\
66+
67+
* Docker: Add an environment variable <mark style="background-color:yellow;">`LOCAL_USER_ID`</mark> to the deploying command, as shown below:\
68+
<mark style="background-color:yellow;">`docker run -d --name openblocks -e LOCAL_USER_ID = YOUR_USER_ID -p 3000:3000 -v "$PWD/stacks:/openblocks-stacks" openblocksdev/openblocks-ce`</mark>
69+
{% endhint %}
70+
6071
## Update
6172

6273
{% tabs %}

0 commit comments

Comments
 (0)