diff --git a/src/docs/guides/general/server/docker.en-US.mdx b/src/docs/guides/general/server/docker.en-US.mdx index 1eadc996..00679842 100644 --- a/src/docs/guides/general/server/docker.en-US.mdx +++ b/src/docs/guides/general/server/docker.en-US.mdx @@ -65,3 +65,39 @@ You'll need to tweak the `.env` file. Set `S3_ENDPOINT_PUBLIC` to your local net - S3_ENDPOINT_PUBLIC=http://univer-minio:9000 + S3_ENDPOINT_PUBLIC=http://:19000 ``` + +### How to find error when server start failed ? + +You can use `docker compose logs` to see server logs, for example: +```shell +# see universer latest 20 minute logs +docker compose logs -f universer --since 20m +``` + +If you need assistance, feel free to contact us. + +### How to restart, stop, uninstall server ? +```shell +# restart server +bash run.sh + +# stop server +docker compose stop + +# uninstall +docker compose down + +# uninstall and clean data +docker compose down --volumes +``` + +### How to change host port the server used ? + +You can update the `.env` file, then run `bash run.sh` + +``` +# host ports +HOST_NGINX_PORT=8000 +HOST_MINIO_PORT=19000 +HOST_GRAFANA_PORT=13000 +``` diff --git a/src/docs/guides/general/server/docker.zh-CN.mdx b/src/docs/guides/general/server/docker.zh-CN.mdx index 93039458..cdab5a6b 100644 --- a/src/docs/guides/general/server/docker.zh-CN.mdx +++ b/src/docs/guides/general/server/docker.zh-CN.mdx @@ -86,4 +86,42 @@ Univer 服务默认端口如下: - image: bitnami/minio:${MINIO_VERSION} + image: univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/minio:${MINIO_VERSION} -``` \ No newline at end of file +``` + +### 怎么排查服务启动报错? + +你可以用 `docker compose logs` 命令查看服务日志,例如: + +```shell +# 查看 universer 最近20分钟内的日志 +docker compose logs -f universer --since 20m +``` + +如果你需要帮助,请尽管联系我们。 + +### 如何重启、停止、卸载服务? + +```shell +# 重启 +bash run.sh + +# 停止 +docker compose stop + +# 卸载 +docker compose down + +# 卸载并删除数据 +docker compose down --volumes +``` + +### 怎样修改服务端口? + +可以更新 `.env` 文件,然后执行 `bash run.sh` 重启。 + +``` +# host ports +HOST_NGINX_PORT=8000 +HOST_MINIO_PORT=19000 +HOST_GRAFANA_PORT=13000 +```