docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos neosmemo/memos:latest
```
> The `~/.memos/` will be used as the data directory in your machine. And `/var/opt/memos` is the directory of the volume in docker and should not be modified.
If the `~/.memos/` does not have a `memos_prod.db` file, then memos will auto generate it. Memos will be running at [http://localhost:5230](http://localhost:5230).
> `~/.memos/` will be used as the data directory in your machine. And `/var/opt/memos` is the directory of the volume in docker and should not be modified.
### Docker Compose
Example Compose YAML file: [`docker-compose.yaml`](./docker-compose.yaml).
Example docker compose YAML file: [`docker-compose.yaml`](./docker-compose.yaml).
If you want to upgrade the version of memos, use the following command.
You can upgrade memos with the following command.
```sh
docker-compose down && docker image rm neosmemo/memos:latest && docker-compose up -d
@ -56,7 +52,7 @@ Contributions are what make the open source community such an amazing place to l
See more in [development guide](./docs/development.md).
## Products made by Community
### Products made by Community
- [Moe Memos](https://memos.moe/) - Third party client for iOS and Android