How to Store All Docker Data on My NAS?

0
1
Asked By TechyNinja92 On

Hey everyone, I have a home server with a ZFS pool that I use as a NAS. In that pool, there's a directory accessible at /rastla-nas/private/.docker, where I keep separate folders for applications like Jellyfin and Immich, along with their respective .data folders and docker-compose.yml files. My concern is that if I ever swap out the main SSD of my server, I won't be able to just run 'docker compose up' without losing some important locally stored data, like the metadata for Immich. I'm okay with needing to pull the Docker images again, but I want to ensure all critical data is safely on the NAS. What settings do I need to adjust to make sure everything is properly directed to the NAS?

1 Answer

Answered By JiffyDocker86 On

To keep your data safe, make sure you're using Docker volumes or mounts correctly. If set up properly, you can move your Docker containers around without losing anything, as long as your mounts are accessible. Just check how Jellyfin and Immich manage their data and update your docker-compose.yml to point to those NAS folders instead. You're good to go!

CuriousCoder77 -

Thanks for clarifying! So it sounds like I can add those mounts to the docker-compose.yml at any time, right?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.