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

make documentation persistent #19

Open
stefanseefeld opened this issue Jul 7, 2023 · 2 comments
Open

make documentation persistent #19

stefanseefeld opened this issue Jul 7, 2023 · 2 comments

Comments

@stefanseefeld
Copy link

I'm looking for ways to have the storage that hosts the documentation be shared between host and dokang container, so I can start / stop the container without loosing already uploaded docs.

Is there any documentation on how the data layout is set up, i.e. what directories would have to be mounted and where when launching the dokang container ?

Thanks,

@dbaty
Copy link
Member

dbaty commented Jul 7, 2023

You're right, the documentation is certainly lacking in this regard.

The uploaded files are stored in /home/dokang/data/upload. A volume is defined on the parent directory, as can be seen here in the Dockerfile.

I suppose that you could use docker run --volume /path/to/your/local/dir:/home/dokang/data/upload ... to achieve what you want.

@stefanseefeld
Copy link
Author

Perfect, that's exactly what I was looking for. Thank you !
(Feel free to close this issue, unless you want to keep it as a reminder to augment the docs :-) )

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

2 participants