Photoprism as Google Photos Replacement - My Experience

Anybody else heard of, or using Photoprism? GitHub - photoprism/photoprism: Photos App powered by Go and Google TensorFlow šŸŒˆ

Since Google is starting to charge for storage starting in June, I installed it on my Yunohost server to check it out.

If interested in my setup, click below.

If you guys donā€™t use Photoprism, do you use any other self-hosted photo program?

6 Likes

A very nice post, I didnā€™t know Photoprism at all, Iā€™ll take a look at it on my side.
For self-hosted photo programs, I use Piwigo, itā€™s clearly not as advanced as Photoprism, even if the web interface and themes looks old, itā€™s more than enough for my general use. Whether itā€™s to store my photos and images, or to share, it works very well and requires few resources

Are you interested on packaging it for Yunohost ? I think many people would be grateful :innocent:

2 Likes

Sadly, I donā€™t know the first thing about packaging things. It is also run through Docker, so I donā€™t think it would be very worthwhile to ā€˜packageā€™ this.

To get the snazzy tile in the Yunohost online part, I think I just need to install this: https://github.com/YunoHost-Apps/redirect_ynh

1 Like

What I will do, is write a setup guide for dummies like me using Yunohost. I just about finished setting up mine the way I like it.

5 Likes

Yeaaah thank you !! :smiley:

Here is a setup guide for Yunohost

I still canā€™t get it to properly redirect with NGINX. I am terrible at NGINX. Maybe somebody else can help me figure that out.

But if you follow my guide youā€™ll be having it working locally.

3 Likes

Thanks for the tutorial! Based on my experience with Photoprism and YunoHost on a small VPS:

  1. Open Ports in your Router/Firewall
    sudo yunohost firewall allow Both 2342
    Router, do it like you did before for Yunohost.
    NOTE: Is this necessary? Not sure.

It is indeed not necessary, and actually dangerous since people could go to yourdomain.tld:2342 and bypass the SSO.

ERROR: I can access domain.tld/photos but just shows a massive Photoprism logo.

My guess is that PhotoPrism expects to be installed at the root of a domain, so if you install the Redirect app on photo.domain.tld, path /, it will work. I have just tested that on my server.

Maybe you could have it working by setting domain.tld and path /photo for the Redirect app while having set PHOTOPRISM_SITE_URL: "https://domain.tld/photo" in the docker-compose.yml. I will leave it to you to test it. :wink:

4 Likes

Got it! Will update my tutorial. Thanks!

1 Like

Thanks for sharing!
I also use piwigo, but photoprism seems very interesting!

2 questions:

Polochon

1 Like
  1. AVC1 is a codec for mp4s. It uses ffmpeg internally to transcode movies to mp4 with AVC1 codec. The only problem Iā€™ve had with videos are my MJPEG videos from about 2017 made with my old Canon powershot.

  2. There is no app yet, but it works just great in a web browser though.

Thanks for your repy, I should test it!

1 Like

Updated tutorial:

Remove Floating Yunohost Button
The floating navigation button is very intrusive when using Photoprism on mobile. It gets in the way, so the best thing is to disable it.

sudo nano /etc/nginx/conf.d/photos.domain.tld/redirect.conf

Comment out these lines:

#Include SSOWAT user panel.
#include conf.d/yunohost_panel.conf.inc;
#moreclearinput_headers ā€˜Accept-Encodingā€™;

Hey arkadi,
any long time experience? I would like to take a look at your guide but it is not available anymoreā€¦ Would it bother you to bring it online again?

1 Like

Sorry. I recently switched my blog to Hugo. I updated the links above.

Photoprism is working splendidly for me. We have facial recognition now!

1 Like

Hey,
The links are still not working, would love to read your blog :grin:.

link up! any questions, let me know.

1 Like

Hi,

This question is more related to docker.

I canā€™t install docker by simply doing sudo apt install docker-compose. Reading through docker docs it seems I have to first install Docker engine and continue with the repo installation.

Any advice on this?
I donā€™t want to just simply install docker on a VPS with Yunohost installed. Iā€™m too new to this and Iā€™m unsure of what could break.

On the other hand, Iā€™m very keen on installing docker as Iā€™d like to install another app, paperless-ng and your tutorial, @arkadi for Photoprism is really good to try and replicate for paperless-ng.

Cheers

Docker wonā€™t break Yunohost, donā€™t worry. Docker is quite self-contained. If it does mess something up, reboot, and uninstall docker.

As many docker services will caution, make sure you donā€™t set your docker apps to ā€˜autorestartā€™ until youā€™ve tested it works.

Iā€™m really interested in PhotoPrism mainly for itā€™s ability to automatically recognize people. Most of my photos are on my Yunohost Nextcloud install, which is accessible via webdav. I see that Photoprism can access webdav mounts. Do you know if itā€™s possible for Photoprism to just tag images in a way that Nextcloud can read? Iā€™d love for my family to just be able to click on the ā€œKidsā€ tag in Nextcloud and have it automatically show all of the photos of my kidsā€¦