LibrePhotos / librephotos

A self-hosted open source photo management service. This is the repository of the backend.
MIT License
6.93k stars 302 forks source link

Change internal backend docker paths to best practices #202

Open derneuere opened 3 years ago

derneuere commented 3 years ago

We currently work in the docker image within the root directory. We should change that to resemble best practices under linux and change the paths of the data, code, data_model, log and protected_media folder.

I think it would make sense to put the logs under var/log/librephotos. The data folder should be in the home directory. "code", "protected_media" and "data_model" should be in var/lib/librephotos

I am open for other suggestions where to put the folders :)

darrepac commented 3 years ago

talking about paths I have found the relative path in the .env confusing (for a newbie like me). So I changed it to absolute path to be sure