Hopefully I’m posting this in the right place. I’m planning on using immich for selfhosted photo storage. I’m a bit worried that I may lose all my photos if my drive fails, so I’m planning on running two hdd’s in raid 1 in addition to my nvme that I’m running my OS on.

I couldn’t find this when I googled it, but is it possible to point immich to store data on a separate internal drive other than the one that the OS is running on?

You are viewing a single thread.
View all comments View context
1 point

Idk, maybe? I’m a docker noob. How hard is it to redeploy a docker container and keep my photos?

permalink
report
parent
reply
1 point

Assuming you set up your volume correctly, it’s very easy. If you’re brave, you could even have your image URI use the tag latest, then all you need to do is restart the container each time an update comes out. I’m a little less brave. I like to use explicit version numbers. I just update my Dockerfile or yml file and restart it each time.

permalink
report
parent
reply
1 point

Kinda unrelated, but if I restart my computer for whatever reason, will the containers and volumes be wiped out?

permalink
report
parent
reply
3 points

Nope, the containers will stop and the volumes (bind mount or classic) will persist

permalink
report
parent
reply
2 points

The volumes will be fine. The way volumes work is the data is stored on the host in a directory, and then that directory gets mounted on the container. So as long as you don’t delete the volume’s folder on the host, you are totally fine.

The containers won’t get wiped, but even if they did, it wouldn’t matter. They aren’t anything special. You could wipe them at will and pull them again and restart them. As long as your volumes didn’t get deleted, it will be like nothing even happened.

permalink
report
parent
reply
1 point

It is not very hard. The problem is when they suddenly change an environment variable name or format, and you need to debug what is not working and why

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 4.9K

    Monthly active users

  • 3.5K

    Posts

  • 75K

    Comments