Pages: 1 2
RushLana, --- THANK YOU !!!
I followed your example and I can use multiple locations !!!
NOW,,,, for the elephant in the room question.......
Why with basic install can piwigo find the galleries folder and the sub-folders and pictures inside the sub-folders ???
1st location -- /home/anne/Piwigo/piwigo-data/galleries/folder1/pictures-ABC.jpg
You have ,,,
volumes:
- ./piwigo-data/piwigo:/var/www/html/piwigo/
- ./piwigo-data/scripts:/usr/local/bin/scripts/
AND ------ piwigo finds and displays the data in the galleries folder.....
--- SO --- ,,,,, why when I add a 2nd location - /home/anne/Piwigo-media/:/var/www/html/piwigo/galleries
does piwigo only find the newly added 2nd location...... and deletes the data from the 1st location ????
----BUT, -- ,,,,,, if I add a 3rd location,
volumes:
- ./piwigo-data/piwigo:/var/www/html/piwigo/ 1st. the Galleries Folder, sub-folders and pictures in sub-folders
- ./piwigo-data/scripts:/usr/local/bin/scripts/
- /home/anne/Piwigo-media/:/var/www/html/piwigo/galleries ADD 2nd, ONLY this location shows,, deletes data from 1st
- /home/anne/Pictures/:/var/www/html/piwigo/galleries/Pictures/ ADD 3rd, now 2 and 3 display, 1st still does not
Having BOTH the 2nd & 3rd locations show up,,,, is GREAT !!
BUT------
the ORIGINAL location /home/anne/Piwigo/piwigo-data/galleries/folder1/pictures-ABC.jpg
still does NOT show up......
I can certainly work around the 1st original location not showing by just adding another location, and move the data from location 1, to the new location.
I hope all this description makes sense to you..... All this is because I really would like to know and understand WHY the original location 1, works great IF that location is the only location,,,, does not work when other locations are added....
THANK YOU
for all your guidance in getting this to work...
and I understand if you do not have time to "school" this old lady in docker stuff.... :-)
Anne
Offline
Hi,
I'm not sure I get everything but I will try to explain :
When you mount a directory its content are hidden to make place for the content in the mounted directory.
For example :
I have two directories named Folder1 and Folder2 in /home/lana like this :
/home/lana/Folder1 contain a file name file.txt
/home/lana/Folder2 contain a image named img.png
If I mount Folder2 into Folder1 (/home/lana/Folder2:/home/lana/Folder1) it will "hide" the content of Folder1 and I will only be able to see img.png.
If I want to access content from Folder2 in Folder1 I should mount it in a sub-directory of Folder1 like this :
/home/lana/Folder2:/home/lana/Folder1/folder2
In your case if you want to preserve the original galleries folder and add other folders into it you should map them to sub-folders.
Offline
Pages: 1 2