From af924d910539f55a0b46ca4635f64a435d434f39 Mon Sep 17 00:00:00 2001 From: olomana Date: Thu, 16 Feb 2023 23:16:35 +0000 Subject: [PATCH] Set up Photoprism --- photoprism/.gitignore | 1 + photoprism/README.md | 12 ++++++++++++ photoprism/docker-compose.yml.blanked | 26 ++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 photoprism/.gitignore create mode 100644 photoprism/README.md create mode 100644 photoprism/docker-compose.yml.blanked diff --git a/photoprism/.gitignore b/photoprism/.gitignore new file mode 100644 index 0000000..1120be9 --- /dev/null +++ b/photoprism/.gitignore @@ -0,0 +1 @@ +docker-compose.yml diff --git a/photoprism/README.md b/photoprism/README.md new file mode 100644 index 0000000..2096958 --- /dev/null +++ b/photoprism/README.md @@ -0,0 +1,12 @@ +# Photoprism + +Self hosted image gallery for PWS. + +### Instructions + +Copy `docker-compose.yml.blanked` --> `docker-compose.yml`. + +Change the default admin credentials/site/etc. +Note that PHOTOPRISM_SITE_URL has the https prefix while the traefik label does not. + +Start with `docker-compose up -d`. diff --git a/photoprism/docker-compose.yml.blanked b/photoprism/docker-compose.yml.blanked new file mode 100644 index 0000000..836d4fb --- /dev/null +++ b/photoprism/docker-compose.yml.blanked @@ -0,0 +1,26 @@ +version: "3" + +networks: + traefik_traefik-network: + external: true + +services: + photoprism: + image: photoprism/photoprism + container_name: photoprism + restart: always + networks: + - traefik_traefik-network + ports: + - "2342:2342" + volumes: + - /data/persistent/photoprism/storage:/photoprism/storage + - /data/persistent/photoprism/originals:/photoprism/originals + environment: + - PHOTOPRISM_ADMIN_PASSWORD=ADMIN_PASSWORD + - PHOTOPRISM_SITE_URL=HTTPS://SITE_URL.COM + labels: + - traefik.http.routers.gallery.rule=Host(`SITE_URL.COM`) + - traefik.http.routers.gallery.tls=true + - traefik.http.routers.gallery.tls.certresolver=lets-encrypt +