Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Add zh_CN translation for https://github.com/siyuan-note/siyuan/pull/9679

Daniel30ef9d9ca528
diff --git a/README.md b/README.md
index 149445b166..6d3fd628b9 100644
--- a/README.md
+++ b/README.md
@@ -149,13 +149,14 @@ To simplify, it is recommended to configure the workspace folder path to be cons
docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/ --accessAuthCode=xxx
```
-Alternatively, see below for an example docker-compose file:
+Alternatively, see below for an example Docker Compose file:
+
```
version: "3.9"
services:
main:
image: b3log/siyuan
- command: ['--workspace=/siyuan/workspace/','--accessAuthCode=${AuthCode}']
+ command: ['--workspace=/siyuan/workspace/', '--accessAuthCode=${AuthCode}']
user: '1000:1000'
ports:
- 6806:6806
diff --git a/README_zh_CN.md b/README_zh_CN.md
index 53d31877f0..a7835516ae 100644
--- a/README_zh_CN.md
+++ b/README_zh_CN.md
@@ -152,6 +152,25 @@ docker run -d -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/s
docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/ --accessAuthCode=xxx
```
+使用 Docker Compose 部署请参考下面的示例:
+
+```
+version: "3.9"
+services:
+ main:
+ image: b3log/siyuan
+ command: ['--workspace=/siyuan/workspace/', '--accessAuthCode=${AuthCode}']
+ user: '1000:1000'
+ ports:
+ - 6806:6806
+ volumes:
+ - /siyuan/workspace:/siyuan/workspace
+ restart: unless-stopped
+ environment:
+ # A list of time zone identifiers can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
+ - TZ=${TimeZone}
+```
+
#### 用户权限
镜像中是使用默认创建的普通用户 `siyuan`(uid 1000/gid 1000)来启动内核进程的,所以在宿主机创建工作空间文件夹时请注意设置该文件夹所属用户组:`chown -R 1000:1000 /siyuan/workspace`,在启动容器时需要带参数 `-u 1000:1000`。