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
By default the supervisor will run under the user <markstyle="background-color:yellow;">`uid=9001`</mark>. You can specify the uid by adding a docker environment variable <markstyle="background-color:yellow;">`LOCAL_USER_ID`</mark> and setting its value.
60
+
### Run as non-root user
62
61
63
-
* Docker-compose: Add an environment variable <markstyle="background-color:yellow;">`LOCAL_USER_ID`</mark> in <markstyle="background-color:yellow;">`docker-compose.yml`</mark> downloaded in your working directory.\
64
-
\
65
-
After modifying the YML file, you may need to delete your current container and start a new one.\
62
+
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.
66
63
67
-
* Docker: Add an environment variable <markstyle="background-color:yellow;">`LOCAL_USER_ID`</mark> to the deploying command, as shown below:\
With an SSL certificate, you can securely visit self-hosted Openblocks with HTTPS protocol. Here are the steps to install your SSL certificate before starting a container:
84
+
85
+
{% tabs %}
86
+
{% tab title="Docker-Compose" %}
87
+
1. Copy `fullchain.pem` and `privkey.pem` to the `$PWD/stacks/ssl` directory.
88
+
2. In `$PWD/docker-compose.yml`, change the value of `ports` to `"3443:3443"`.\
89
+

90
+
{% endtab %}
91
+
92
+
{% tab title="Docker" %}
93
+
1. Copy `fullchain.pem` and `privkey.pem` to the `$PWD/stacks/ssl` directory.
94
+
2. Change the `ports` of the deploying command to `3443:3443`, as shown below:
95
+
96
+
{% code overflow="wrap" %}
97
+
```
98
+
docker run -d --name openblocks -p 3443:3443 -v "$PWD/stacks:/openblocks-stacks" openblocksdev/openblocks-ce
0 commit comments