[DiscordArchive] Why does the ac-database not mount to the host system?
[DiscordArchive] Why does the ac-database not mount to the host system?
Archived author: volek • Posted: 2023-07-28T13:56:48.265000+00:00
Original source
Granted I work on a Mac and Docker Desktop is shaky on a mac, but that volume went away and poof it was all gone, if it had been on the host system I could have restored. Not a huge deal I rebuilt it any did not lose a ton of time, but made changes so it is stored externally. docker compose down will wipe volumes according to their docs.
Archived author: volek • Posted: 2023-07-28T13:57:29.567000+00:00
Original source
stop will not.
Archived author: mynameismeat • Posted: 2023-07-28T13:58:10.551000+00:00
Original source
did you `docker compose down` or `docker compose down -v`?
`-v` is the one that removes volumes <https://docs.docker.com/engine/reference/commandline/compose_down/>
Archived author: volek • Posted: 2023-07-28T13:58:55.664000+00:00
Original source
honestly I didnt run either
Archived author: volek • Posted: 2023-07-28T13:59:01.178000+00:00
Original source
I restarted the mac
Archived author: volek • Posted: 2023-07-28T13:59:47.227000+00:00
Original source
and I am guessing with somewhere in there something went wrong.
Archived author: mynameismeat • Posted: 2023-07-28T14:05:12.009000+00:00
Original source
ah. That's weird. My server runs on Linux so I'll have a hard time speaking to the mac-specific stuff.
I'd personally say the risk of deleting the volume is negated by the ease of taking backups and I'd imagine for docker in MacOS, there's a performance hit if you put a database in a bind mount.
Archived author: mynameismeat • Posted: 2023-07-28T14:05:51.264000+00:00
Original source
to be fair I don't think there's actually any documentation about how to take a backup, and there probably should be something basic written down
Archived author: Foe • Posted: 2023-07-28T14:26:34.719000+00:00
Original source
The volume is in essence written to the host system regardless, so it doesn't matter much
Archived author: Foe • Posted: 2023-07-28T14:26:54.888000+00:00
Original source
But yes, proper backup routines is key