You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/docs/deploy/docker-deploy-guide.md

18 lines
600 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 使用 Docker 部署
1. 下载初始化数据库文件至本地 `~/data/memos.db`,运行命令:
```shell
mkdir ~/data
cd ~/data
wget --no-check-certificate https://github.com/justmemos/memos/blob/main/resources/memos.db?raw=true
```
2. 创建并启动容器,镜像里包含所需的所有环境。只需自行 pull + run即可完成部署
```docker
docker run --rm --pull always --name memos -p 8080:8080 -v ~/data/:/usr/local/memos/data/ -d neosmemo/memos
```
默认数据库内会有两个帐号,分别为 `test``guest` ,密码均为 `123456`