Skip to content

Purpose and persistence of /srv dir #450

Closed Answered by Bubka
shalak asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

/srv/database/database.sqlite is a symlink to /2fauth/database.sqlite, as well as /srv/storage which targets /2fauth/storage.
So no you don't have to make /srv a persistent volume. As long as you keep /2fauth (on the host side) safe, with the ./2fauth:/2fauth binding, you can delete/recreate the container without loosing data.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shalak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants