mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update docker run commands
This commit is contained in:
@ -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`.
|
||||||
|
Reference in New Issue
Block a user