# Best practice when using Photoprism with Nextcloud AIO?

**URL:** <https://help.nextcloud.com/t/best-practice-when-using-photoprism-with-nextcloud-aio/175282>\
**Category:** ℹ️ Support\
**Created:** [November 28, 2023, 7:30am UTC](https://help.nextcloud.com/t/best-practice-when-using-photoprism-with-nextcloud-aio/175282 "2023-11-28T07:30:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin0542](https://help.nextcloud.com/user_avatar/help.nextcloud.com/justin0542/32/55697_2.png) [@justin0542](https://help.nextcloud.com/u/justin0542)\
**Post date:** [November 28, 2023, 7:30am UTC](https://help.nextcloud.com/t/best-practice-when-using-photoprism-with-nextcloud-aio/175282/1 "2023-11-28T07:30:22Z")

</div>

Nextcloud version: **27.1.3** (using Nextcloud AIO **v7.7.0** )  
Operating system and version: **Ubuntu 22.04.3 LTS**  
Apache or nginx version: (unknown, whatever NC AIO is using)  
PHP version: (unknown, whatever NC AIO is using)

The issue you are facing: I want to install Photoprism with Nextcloud AIO. However, I’m not sure the best way to go about connecting my Photoprism folder with my Nextcloud instance.

I know I can connect the two via WebDAV, but because both docker containers are running on the same machine, I’d like for them to just share files without having two copies of every photo on the machine.  
I also know I could mount the folder within the `nextcloud-aio-nextcloud` volume directly to Photoprism, but I’m not sure if interfacing directly with a volume like that is considered “best practice” (i.e., mounting `/var/lib/docker/volumes/nextcloud_aio_nextcloud_data/_data/<user>/` to Photoprism’s `photoprism/originals`).

What is the best approach here? Should I even bother with Photoprism? I only looked into Photoprism because my experience with the auto-upload feature in Nextcloud’s iOS app was so awful.

---

<div class="post-metadata">

**Author:** ![dugite-code](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dugite-code/32/6434_2.png) [@dugite-code](https://help.nextcloud.com/u/dugite-code)\
**Post date:** [November 28, 2023, 7:53am UTC](https://help.nextcloud.com/t/best-practice-when-using-photoprism-with-nextcloud-aio/175282/2 "2023-11-28T07:53:29Z")

</div>

You wouldn’t want to mount the Nextcloud folder into Photoprism as Nextcloud doesn’t poll the dir for changes automatically, information about what files you have is stored in the database. Webdav could work, but there is significant performance overhead there. Direct disk access would be ideal IMHO

What I would recommend to do is enable External storage support, mount a separate folder somewhere in your containers and then add the folder into Nextcloud. For example I do this with Paperless:

```yaml
    volumes:
      - ./volumes/nextcloud:/var/www/html
      - ../paperless-ngx/volumes/consume:/var/www/paperless/consume
      - ../paperless-ngx/volumes/media/documents:/var/www/paperless/documents:ro

```

 ![image](https://help.nextcloud.com/uploads/default/original/3X/0/c/0c12b2fe4ed00fea18cc4f245754e08529a7ead1.png)

The difficult part was setting the permissions for the shared folder as my containers for Paperless and Nextcloud use different UID and GID numbers

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [November 28, 2023, 1:08pm UTC](https://help.nextcloud.com/t/best-practice-when-using-photoprism-with-nextcloud-aio/175282/3 "2023-11-28T13:08:09Z")

</div>

Hi, why not use [Memories](https://memories.gallery/) instead of Photoprism?

See [https://github.com/nextcloud/all-in-one/tree/main/community-containers/memories](https://github.com/nextcloud/all-in-one/tree/main/community-containers/memories)

---

<div class="post-metadata">

**Author:** ![MorugaSkorpion](https://help.nextcloud.com/user_avatar/help.nextcloud.com/morugaskorpion/32/63475_2.png) [@MorugaSkorpion](https://help.nextcloud.com/u/MorugaSkorpion)\
**Post date:** [August 11, 2024, 7:38am UTC](https://help.nextcloud.com/t/best-practice-when-using-photoprism-with-nextcloud-aio/175282/4 "2024-08-11T07:38:14Z")

</div>

I don’t use photos or memories for the performance

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 9:04am UTC](https://help.nextcloud.com/t/best-practice-when-using-photoprism-with-nextcloud-aio/175282/5 "2025-01-16T09:04:33Z")

</div>


