Replies: 4 comments
-
I'm not deeply familiar with nextcloud, but to my understand that is not possible out of the box. nextcloud uses its own file system/way of storing files that are not available outside nextcloud. There is some extension to export files somehow. I rather use this setup: |
Beta Was this translation helpful? Give feedback.
-
you can definitely do this. I do the same thing running on Unraid. Nextcloud stores the photos in a particular directory, but as long as you mount that same directory into the PiGallery2 container it will happily read the files from the same place. In my case I have a folder on the host system mounted into the Nextcloud data directory, and that same folder also mounted into PiGallery2 (In read-only so there is never any danger of PiGallery2 changing any of my photos). I think we can give you pointers and confirm that what you're doing is possible, but you're probably going to need to do some digging/learning to understand how docker bind mountpoints work. The idea is to mount the same folder from the host OS into the Nextcloud container as the data mountpoint and into the PiGallery2 container as its data mountpoint. This for example shows how my data directory is mounted into Nextcloud Then PiGallery2s container gets the same host folder (a little deeper into the path) mounted into it |
Beta Was this translation helpful? Give feedback.
-
Use nextcloud external storage function |
Beta Was this translation helpful? Give feedback.
-
After @rhatguy's comment I gave next could an other try. I set my data dir to my /mnt/nextcloud folder (I would be able to mount that to pigallery). But I rather user external storage to mount only one pigallery folder to nextcloud. Here are my portainer stacks:
pigallery stack: (replace the reducted text to something like
nginx-proxy-managerstack: (replace the reducted text):
I use nginx-proxy-manager in front of pigallery and nextcloud. I made sure that are on the same network then:
For nextcould I followed this: https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md |
Beta Was this translation helpful? Give feedback.
-
Hi,
I really like the look of pigallery2 and have spent 2 days trying to set it up. I am a novice so am using Portainer on a raspberry pi 4B with a container for pigallery2 and a container for nextcloud, where the photos are located. Using Portainer, I haven't needed to create a docker compose file or edit any other configuration. I've got pigallery2 running but I cannot find out how to point it to nextcloud to actually see the photos. There doesn't seem to be the support for novice users like myself available. I've searched and read so much but it's all requiring editing things that I haven't needed to do as part of the install. The instructions say that you can set it up using the settings in the UI which I've tried but the settings for host aren't intuitive so I'm purely guessing and not having any success.
Would anyone be kind enough to spare some time to help a beginner please?
Thanks in advance,
Matt
Beta Was this translation helpful? Give feedback.
All reactions