diff --git a/README.md b/README.md index b1b2de3b..3b494916 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,27 @@ ## Deploy with Docker +#### 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 + restart: unless-stopped +``` + 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. ## Development diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..fa8e7174 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.0" +services: + memos: + image: neosmemo/memos:latest + container_name: memos + volumes: + - ~/.memos/:/var/opt/memos + ports: + - 5230:5230 + restart: unless-stopped