photoprism/docker/examples/cloud/digitalocean
2022-02-09 18:27:50 +01:00
..
check.sh Auth: Improve local dev environment and config examples #98 #782 2022-02-08 12:51:12 +01:00
cleanup.sh Docker: Add scripts and packer config for DigitalOcean 2021-08-06 01:36:34 +02:00
firewall.sh Docker: Remove duplicate "apt-get dist-upgrade" from Dockerfiles 2022-02-02 17:57:58 +01:00
README.md Docs: Update URLs for easier maintenance 2022-02-09 18:27:50 +01:00

PhotoPrism 1-Click App for DigitalOcean

Privately browse, organize, and share your photo collection.

DESCRIPTION

PhotoPrism® is a privately hosted app for browsing, organizing, and sharing your photo collection. It makes use of the latest technologies to tag and find pictures automatically without getting in your way. Say goodbye to uploading your visual memories to the cloud!

To learn more, visit https://photoprism.app/ or try our demo.

SOFTWARE INCLUDED

GETTING STARTED

It may take a few minutes until your Droplet is provisioned, and all services have been initialized.

The initial admin password is stored on your Droplet, you'll see it when running these commands:

ssh root@YOUR-SERVER-IP
cat /root/.initial-password.txt

You can then access your instance by opening the following URL in a Web browser (see "Using Let's Encrypt HTTPS" for how to get a valid certificate):

https://YOUR-SERVER-IP/

All files related to PhotoPrism can be found in /opt/photoprism. It is running as "photoprism" (UID 1000) by default.

To edit the main config file containing services, storage paths, and basic settings (save changes by pressing Ctrl+O, then Ctrl+X to exit):

cd /opt/photoprism
nano docker-compose.yml

Remember to restart services for changes to take effect:

docker-compose stop
docker-compose up -d

Using Let's Encrypt HTTPS

By default, a self-signed certificate will be used for HTTPS connections. Browsers are going to show a security warning because of that. Depending on your settings, they may also refuse connecting at all.

To get an official, free HTTPS certificate from Let's Encrypt, your server needs a fully qualified public domain name, e.g. "photos.yourdomain.com".

You may add a static DNS entry (on DigitalOcean go to Networking > Domains) for this, or use a Dynamic DNS service of your choice.

Once your server has a public domain name, please disable the self-signed certificate and enable domain based routing in docker-compose.yml and traefik.yaml (see inline instructions in !! UPPERCASE !!):

ssh root@YOUR-SERVER-IP
cd /opt/photoprism
nano docker-compose.yml
nano traefik.yaml

Then restart services for the changes to take effect:

docker-compose stop
docker-compose up -d

You should now be able to access your instance without security warnings:

https://photos.yourdomain.com/

Note the first request may still fail while Traefik gets and installs the new certificate. Try again after 30 seconds.

System Requirements

We recommend hosting PhotoPrism on a server with at least 2 cores and 4 GB of memory. Indexing and searching may be slow on smaller Droplets, depending on how many and what types of files you upload.