chore: update deploy guide in readme

This commit is contained in:
boojack 2022-05-29 11:04:58 +08:00
parent 183ce534b9
commit 8df0711f80

View File

@ -24,13 +24,14 @@
## ✨ Features ## ✨ Features
- 🦄 Fully open source; - 🦄 Fully open source;
- 👍 Write in the plain textarea without any burden;
- 🤠 Great UI and never miss any detail; - 🤠 Great UI and never miss any detail;
- 🚀 Super quick self-hosted with `Docker` and `SQLite`; - 🚀 Super quick self-hosted with `Docker` and `SQLite`;
## ⚓️ Deploy with Docker ## ⚓️ Deploy with Docker
```docker ```docker
docker run --name memos --publish 5230:8080 --volume ~/.memos/:/var/opt/memos -e mode=prod neosmemo/memos:0.1.0 docker run --name memos --publish 5230:5230 --volume ~/.memos/:/var/opt/memos -e mode=prod -e port=5230 neosmemo/memos:0.1.0
``` ```
Memos should now be running at [http://localhost:5230](http://localhost:5230). If the `~/.memos/` does not have a `memos_prod.db` file, then `memos` will auto generate it. Memos should now be running at [http://localhost:5230](http://localhost:5230). If the `~/.memos/` does not have a `memos_prod.db` file, then `memos` will auto generate it.