I think we discussed this a few times via Discord. The behavior I was experiencing previously was that if I set up my docker-compose like so:
photostructure: volumes: - $MEDIADIR/photos:/photos - $DOCKERDIR/photostructure:/ps/library - $DOCKERDIR/photostructure:/ps/library/.photostructure - /mnt/storage/sync/user/Pictures/ERH 2020:/ERH2020 environment: - TZ - PUID - PGID - UMASK=002 - PS_ORIGINALS_DIR=/photos
And then with automatic management, Photostructure would pull the photos from /ERH2020 into /photos as I expected.
Subsequently, issues abound if I removed that bind mount of /ERH2020. When doing a re-sync or rebuild it appeared the assets would swap from shown=1 to 0, back to 1, etc. - hard to pin down. My goal is to use something like
/import as a temporary bind mount to grab photos from… wherever… on my host, load them, then point the bind mount to a new location and import more photos - eventually removing the photos from their disparate locations except for within /photos.
However, I just stumbled upon a discovery. If I do the following: 1. Set up compose as stated
2. Launch PS
3. Rebuild the container without /ERH2020
4. Rebuild library PS appears to copy the photos back out of /photos into a path of /ERH2020 that exists only in the container because it is no longer bind mounted. Perhaps this is part of the issue? If I remove a bind mount and run a rebuild, I would expect the photos should only have an assetFile location of the library itself and the old location be scrubbed, not have that old location be rebuild within the container itself. Does that make sense? Happy to send whatever logs. Here’s some commands from inside the container:
Edit: It appears it was still bound as I had a duplicate bind mount, so disregard that ‘new finding’ that I thought was helpful. The shown/unshown issue however is still persistent. I can try to recreate the issue with discrete steps if that’s helpful. Please let me know.
If I do a rebuild with the bind mount and photos in place, then remove the bind mount and rebuild, suddenly it shows me I have 0 assets even though all files are still in the /photos originalsDir.