chore: update docker run commands

This commit is contained in:
email 2022-03-24 20:10:46 +08:00
parent 4e544df084
commit b6e78a1c2d
2 changed files with 1 additions and 3 deletions

View file

@ -29,6 +29,4 @@ COPY --from=frontend /frontend-build/dist /usr/local/memos/web/dist
# Directory to store the data, which can be referenced as the mounting point.
RUN mkdir -p /var/opt/memos
CMD ["-mode", "release", "-port", "8080", "-data", "/var/opt/memos"]
ENTRYPOINT ["./memos"]

View file

@ -11,7 +11,7 @@
2. pull and run docker image:
```docker
docker run --name memos --restart always --publish 8080:8080 --volume ~/path/to/your/data/:/var/opt/memos/ neosmemo/memos:next -mode release
docker run --name memos --publish 8080:8080 --volume ~/path/to/your/data/:/var/opt/memos -e mode=release -e data=/var/opt/memos neosmemo/memos:next
```
The default user account is `guest` with password `secret`.