mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1309] Docker Volume mount to store Data externally #428
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#428
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @markusressel on GitHub (Oct 30, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1309
Hi there,
I really like the project and would like to run it using Docker.
However, I always use volume mounts to store application externally (not inside the docker volume stuff), but there is no example of how to do that anywhere. I have found this PR that claims to add a volume definition, but in fact doesn't.
Where does hoppscotch store its data?
Is it a file, a directory, or is it even possible to use an externally hosted database like postgres for that?
Thx!
EDIT:
I just found https://github.com/hoppscotch/hoppscotch/issues/1068 with seems to ask for a similar thing.
Just to clarify why I am asking:
I am accessing hoppscotch from multiple devices, and update the docker container automatically, which is deployed inside of a small kubernetes cluster. The last time I updated the container all data I had set up previously was lost, which was a real inconvenience, so I am looking for a way to preserver application data.
@liyasthomas commented on GitHub (Oct 31, 2020):
As of now, data sync is only available if you've been signed in with Google / GitHub. This is because at the time of writing sync feature, I went with Firebase Firestore DB — since I was using Firebase Auth. But now we're working on decoupling Firebase from the app and support multiple ways to enable users to load and sync collections from a file irrespective of its location (Git repo, Google Drive, Local file, external file / DB etc). Which will ultimately solve this issue. You can find it's active discussion over #870 .
And for this specific issue with Docker, well if you sign in with Google / GitHub, your collections will be synced to Firestore and can be accessed from any instances. And when signed out, it stays inside docker images ~browsers localstorage not being accessible to other instances.
@liyasthomas commented on GitHub (Nov 3, 2020):
I guess this issues can be addressed further in #870, hence closing.