|
@@ -130,12 +130,21 @@ The entry point is set when building the Docker image: `ENTRYPOINT ["/opt/siyuan
|
|
|
|
|
|
* `--workspace` specifies the workspace folder path, mounted to the container via `-v` on the host
|
|
* `--workspace` specifies the workspace folder path, mounted to the container via `-v` on the host
|
|
|
|
|
|
-More parameters can refer to `--help`. The following is an example of a startup command: `docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container`
|
|
|
|
|
|
+More parameters can refer to `--help`. The following is an example of a startup command:
|
|
|
|
+
|
|
|
|
+```
|
|
|
|
+docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container --accessAuthCode=xxx
|
|
|
|
+```
|
|
|
|
|
|
* `workspace_dir_host`: the workspace folder path on the host
|
|
* `workspace_dir_host`: the workspace folder path on the host
|
|
* `workspace_dir_container`: The path of the workspace folder in the container, which is the same as specified in `--workspace`
|
|
* `workspace_dir_container`: The path of the workspace folder in the container, which is the same as specified in `--workspace`
|
|
|
|
+* `accessAuthCode`: Access authorization code, please **be sure to modify**, otherwise anyone can read and write your data
|
|
|
|
+
|
|
|
|
+To simplify, it is recommended to configure the workspace folder path to be consistent on the host and container, such as: `workspace_dir_host` and `workspace_dir_container` are configured as `/siyuan/workspace`, the corresponding startup commands is:
|
|
|
|
|
|
-To simplify, it is recommended to configure the workspace folder path to be consistent on the host and container, such as: `workspace_dir_host` and `workspace_dir_container` are configured as `/siyuan/workspace`, the corresponding startup commands is: `docker run -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/`.
|
|
|
|
|
|
+```
|
|
|
|
+docker run -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/ --accessAuthCode=xxx
|
|
|
|
+```
|
|
|
|
|
|
#### User permissions
|
|
#### User permissions
|
|
|
|
|