mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 The access authorization code command line parameter must be set when deploying via Docker https://github.com/siyuan-note/siyuan/issues/9328
This commit is contained in:
parent
d2356754dd
commit
279e17e8b5
3 changed files with 10 additions and 3 deletions
|
|
@ -130,7 +130,8 @@ The overall program is located under `/opt/siyuan/`, which is basically the stru
|
|||
|
||||
The entry point is set when building the Docker image: `ENTRYPOINT ["/opt/siyuan/kernel" ]`, use `docker run b3log/siyuan` with parameters to start:
|
||||
|
||||
* `--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
|
||||
* `--accessAuthCode`: Specifies the access authorization code
|
||||
|
||||
More parameters can refer to `--help`. The following is an example of a startup command:
|
||||
|
||||
|
|
@ -138,7 +139,7 @@ More parameters can refer to `--help`. The following is an example of a startup
|
|||
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`
|
||||
* `accessAuthCode`: Access authorization code, please **be sure to modify**, otherwise anyone can read and write your data
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue