I’m trying to install Linkwarden and I want to make sure I get the storage right so that if I have to move the data to another VM, it is easy to do. If I use the default compose file, will it simply create a ./data ./pgdata
and ./meili_data
folders in the same folder where the docker compose file is? Which of course is very handy as then I have the compose, the .env and the data all in one place. Is this a good way of managing docker volumes? The install docs here say that I can also set a STORAGE_FOLDER
variable in the .env
file which by default is /data
. But does this mean that the default is in the root directory of the host?
Docker compose files (and docker execs) use the following format
volumes: - <host_storage_path>:<vm_mount_path>
If the docker-compose has a ${VAR_NAME}:/data
, then it will replace it directly with the variable defined in the .env file in the same directory with the format
VAR_NAME=/path/on/host
And would mount the host’s /path/on/host
to /data
ki9@lemmy.gf4.pw 10 hours ago
Unrelated: I recommend vaultwarden, an open source community fork in rust. Works great with official bitwarden apps and extensions.