Closed adriel-tech closed 4 months ago
Hey @adriel-tech, glad you like flatnotes, and thank you very much for the sponsorship, I really appreciate it 👏.
Are you using Docker to run flatnotes? If so, it is already possible to do what you're suggesting, as I do the same myself. The example docker compose shows how this can be achieved.
Thanks for the reply.
I am using podman on NixOS the example in the docker compose does not work for me, my problem is probably due to NixOS spaghetti code.
looking over the example docker compose, you are passing a local ./index into /data/.flatnotes
# - "./index:/data/.flatnotes"
I think my issues is that flatnotes always expects .flatnotes to be created in /data and it cannot be placed somewhere else instead of the notes root folder. My notes are stored in /mnt/Notes which is synced with syncthing. Using podman the .flatnotes folder is always made in /data/.flatnotes. Since /mnt/Notes is mounted inside the podman container as /data, .flatnotes is created which is then synced by syncthing.
Being able to mount my notes to /data/notes would solve my problem or /data/.flatnotes being placed elsewhere like /cache.
I did find a work around for my problem which is just telling syncthing to ignore .flatnotes, which I should have done before bothering you with this.
I'm not familiar with Podman, but this is certainly possible with Docker. In my case, I mount my .flatnotes
directory to a location on my SSD and I mount my notes to a directory on my (slower) storage array.
Anyway, I'm glad you found a solution.
Hello,
I use flatnotes on a server which also has syncthing syncing my notes to other devices. The .flatnotes folder is inconvenient for this use case as it is always writing and syncing. It would be nice to be able to set the location of the .flatnotes folder to somewhere outside of my note folder root.
Thanks for the nice app, it was hard to giving up folders, but flatnotes runs well.