mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
chore: update docker run commands
This commit is contained in:
parent
4e544df084
commit
b6e78a1c2d
2 changed files with 1 additions and 3 deletions
|
@ -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.
|
# Directory to store the data, which can be referenced as the mounting point.
|
||||||
RUN mkdir -p /var/opt/memos
|
RUN mkdir -p /var/opt/memos
|
||||||
|
|
||||||
CMD ["-mode", "release", "-port", "8080", "-data", "/var/opt/memos"]
|
|
||||||
|
|
||||||
ENTRYPOINT ["./memos"]
|
ENTRYPOINT ["./memos"]
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
2. pull and run docker image:
|
2. pull and run docker image:
|
||||||
|
|
||||||
```docker
|
```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`.
|
The default user account is `guest` with password `secret`.
|
||||||
|
|
Loading…
Reference in a new issue