chore: update deploy guide doc

This commit is contained in:
email
2022-02-06 11:26:53 +08:00
parent ff5a1eebd7
commit 516ca61b73
3 changed files with 8 additions and 7 deletions

View File

@ -1,17 +1,17 @@
# 使用 Docker 部署
# Deploy `memos` with Docker
1. 下载初始化数据库文件至本地 `~/data/memos.db`,运行命令:
1. download the initialized db file:
```shell
mkdir ~/data
cd ~/data
wget --no-check-certificate https://github.com/justmemos/memos/blob/main/resources/memos.db?raw=true
wget --no-check-certificate https://github.com/justmemos/memos/blob/main/resources/memos-release.db?raw=true
```
2. 创建并启动容器,镜像里包含所需的所有环境。只需自行 pull + run,即可完成部署:
2. pull and run docker image:
```docker
docker run --rm --pull always --name memos -p 8080:8080 -v ~/data/:/usr/local/memos/data/ -d neosmemo/memos
docker run --name memos --restart always --publish 8080:8080 --volume ~/path/to/your/data/:/var/opt/memos/ neosmemo/memos:next -mode release
```
默认数据库内会有两个帐号,分别为 `test` 和 `guest` ,密码均为 `123456`
The default user account is `guest` with password `123456`.