Because then:
- you also need to know the correct username
- audits and logging shows which user used sudo to gain root access
Because then:
It’s more like quick and dirty. I generally try to create a volume and save the data outside the compose folder. Default is /var/lib/docker/volumes if I remember correctly.
Just to correct a mistake: - ./vaultwarden:/data/ means that the folder /data/ of the container is in the subfolder vaultwarden inside the folder that contains the docker-compose.yml. it is not located in /. for that you need to remove the leading “.”
If you remove ./ vaultwarden points to a volume named vaultwarden that need to be defined separately:
./vaultwarden = relativ path from the docker-compose folder
/vaultwarden = absolut path /
vaultwarden = a volume called vaultwarden
TBH, you need additional backups anyway and you don’t need 100% uptime. You don’t need to pay much for it for internal redundancy (aside of storage) and server features.
Buy the nuc, buy one or two 10GB HDD with usb/usb-c and an external case and your are good to go.
But in the end, any PC will work. Get a cheapo PC, buy 1 SSD for the os and container and a big external disk for storage.
I’m running a Ryzen 5 5600G with 32GB Ram, B450 Chipsets, 1TB SSD for internal and 2 4tb SSD for storage in a micro atx. Cost me around 1200€ bucks 2 years ago.
You can even use an old laptop with a broken panel if you like.
Another possibility is, to buy a cheap (old) server from some company renewing it’s support contracts (loud, space, power hungry).
Or buy an fanless industrial pc. Anything is possible. You could even try to use arm.
I’d recommend to optimize for power consumption, noise (depending where it is located in your home) and storage. Not ECC or redundancy. as long as you do regular backups to another system, which you should do in any case, there is no reason to pay double for something.
First thing I bought after my system was running, was an additional nic, to be able to use the server as a firewall, not an UPS or another hot standby PSU
Your own nextcloud instance. Then move everything that is saved at Google over to your own server.
Calenders, Filesync, Contacts sync with android works really nice.
Knowing my data is stored only on my own devices and google doesn’t know more about me than I do is a nice feeling.
Does it only happen with these two drives? i would try with some other HDD/SSDs or two usb sticks. that way you can test if its some weird hardware incompatibility that sometimes happen between specific devices or if the board wont support more then one connected usb drive in general.