chore: update readme

This commit is contained in:
Steven 2022-09-03 18:46:16 +08:00
parent 89f9dc5640
commit 43575e6f54
2 changed files with 5 additions and 16 deletions

View File

@ -26,28 +26,18 @@
## Deploy with Docker
#### Docker Run
### Docker Run
```docker
docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos neosmemo/memos:latest
```
#### Docker Compose
```
version: "3.0"
services:
memos:
image: neosmemo/memos:latest
container_name: memos
volumes:
- ~/.memos/:/var/opt/memos
ports:
- 5230:5230
```
Memos should 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.
### Docker Compose
See [the example `docker-compose.yaml`](./docker-compose.yaml) file.
## Development
Memos is built with a curated tech stack. It is optimized for developer experience and is very easy to start working on the code:

View File

@ -7,4 +7,3 @@ services:
- ~/.memos/:/var/opt/memos
ports:
- 5230:5230
restart: unless-stopped