Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问数据存放的目录在哪里 #6

Closed
star7th opened this issue Oct 31, 2022 · 5 comments
Closed

请问数据存放的目录在哪里 #6

star7th opened this issue Oct 31, 2022 · 5 comments

Comments

@star7th
Copy link

star7th commented Oct 31, 2022

因为是docker安装,所以每次重启都会被还原。我需要把数据目录持久化挂载出来,才能避免每次被还原

@mouday
Copy link
Owner

mouday commented Oct 31, 2022

启动的时候试试 -v 参数,同步本地文件

@star7th
Copy link
Author

star7th commented Nov 1, 2022

我最终的解决方法是把代码整份映射到容器内部的/app目录。

@star7th star7th closed this as completed Nov 1, 2022
@trytrytogo
Copy link

我也遇到持久化的问题了,还在看怎么弄。
@mouday 能否告知一下挂载的目录呢

@mouday
Copy link
Owner

mouday commented Nov 28, 2022

我也遇到持久化的问题了,还在看怎么弄。 @mouday 能否告知一下挂载的目录呢

docker run \
-v $(pwd)/database:/app/database \
-v $(pwd)/logs:/app/logs \
-p 8000:8000 \
mouday/domain-admin:0.0.18

@trytrytogo
Copy link

我也遇到持久化的问题了,还在看怎么弄。 @mouday 能否告知一下挂载的目录呢

docker run \
-v $(pwd)/database:/app/database \
-v $(pwd)/logs:/app/logs \
-p 8000:8000 \
mouday/domain-admin:0.0.18

好的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants