Hi,
hat jemand in OMV über Docker, Photoprism zum laufen gebracht?
Wenn ich den Container builde bekomme ich ihn nicht gestartet.
Hat jemand eine Anleitung dazu ?
cu
Hi,
hat jemand in OMV über Docker, Photoprism zum laufen gebracht?
Wenn ich den Container builde bekomme ich ihn nicht gestartet.
Hat jemand eine Anleitung dazu ?
cu
Es gibt doch fertige Container:
https://hub.docker.com/r/photoprism/photoprism
mit Anleitung hier
https://docs.photoprism.org/getting-started/docker-compose/
Ich würde allerdings das yaml file in Portainer kopieren und ausführen.
Ja diesen Container habe ich genommen, bekomme es aber nicht zum laufen.
Was muß ich den einstellen, beziehungsweise aufrufen?
Versuche mal das yaml file vielleicht habe ich dann mehr Glück
Wenn du fragen hast, besser fragen. Dann können wir vielleicht einige Probleme vermeiden.
Mit "es geht nicht" wird es schwierig
Ja habe den Container erstellt, aber was muß den machen im Anschluß?
Die Bilder und der Docker sind auf dem Pi mit OMV.
Wie rufe ich den jetzt Prism auf damit er die Bilder aufnimmt?
In OMV ist der Ordner freigegeben.
Im Portainer habe den Host ausgewählt und den Pfad zu den Bildern.
Was fehlt da noch?
cu
Photoprism sollte über diese Adresse erreichbar sein:
http://ip.von.deinem.NAS:2342/
In der Anleitung steht noch was davon, dass man die Blder indizieren muß:
docker-compose exec photoprism photoprism index
Hast du entsprechenden Änderungen/Anpassungen im yaml-File gemacht?
Alles was in einer Zeile hinter # kommt hat keinen Effekt, ist also ein Kommentar oder eine mögliche weitere Alternative
version: '3.5'
# Example Docker Compose config file for PhotoPrism (Windows / AMD64)
#
# NOTE: You may need to disable the WSL 2 based engine in Docker Settings > General
# to mount drives other than C: on Windows.
#
# Documentation : https://docs.photoprism.org/getting-started/docker-compose/
# Docker Hub URL: https://hub.docker.com/r/photoprism/photoprism/
#
# Please run behind a reverse proxy like Caddy, Traefik or Nginx if you need HTTPS / SSL support
# e.g. when running PhotoPrism on a public server outside your home network.
#
# ------------------------------------------------------------------
# DOCKER COMPOSE COMMAND REFERENCE
# ------------------------------------------------------------------
# Start | docker-compose up -d
# Stop | docker-compose stop
# Update | docker-compose pull
# Logs | docker-compose logs --tail=25 -f
# Terminal | docker-compose exec photoprism bash
# Help | docker-compose exec photoprism photoprism help
# Config | docker-compose exec photoprism photoprism config
# Reset | docker-compose exec photoprism photoprism reset
# Backup | docker-compose exec photoprism photoprism backup -a -i
# Restore | docker-compose exec photoprism photoprism restore -a -i
# Index | docker-compose exec photoprism photoprism index
# Reindex | docker-compose exec photoprism photoprism index -a
# Import | docker-compose exec photoprism photoprism import
# -------------------------------------------------------------------
services:
photoprism:
# Use photoprism/photoprism:preview instead for testing preview builds:
image: photoprism/photoprism:latest
# Only enable automatic restarts once your installation is properly
# configured as it otherwise may get stuck in a restart loop:
# https://docs.photoprism.org/getting-started/faq/#why-is-photoprism-getting-stuck-in-a-restart-loop
# restart: unless-stopped
security_opt:
- seccomp:unconfined
- apparmor:unconfined
ports:
- 2342:2342 # [local port]:[container port]
environment:
PHOTOPRISM_ADMIN_PASSWORD: "insecure" # PLEASE CHANGE: Your initial admin password (min 4 characters)
PHOTOPRISM_HTTP_PORT: 2342 # Built-in Web server port
PHOTOPRISM_HTTP_COMPRESSION: "gzip" # Improves transfer speed and bandwidth utilization (none or gzip)
PHOTOPRISM_DEBUG: "false" # Run in debug mode, shows additional log messages
PHOTOPRISM_PUBLIC: "false" # No authentication required, disables password protection
PHOTOPRISM_READONLY: "false" # Don't modify originals folder; disables import, upload, and delete
PHOTOPRISM_EXPERIMENTAL: "false" # Enables experimental features
PHOTOPRISM_DISABLE_WEBDAV: "false" # Disables built-in WebDAV server
PHOTOPRISM_DISABLE_SETTINGS: "false" # Disables Settings in Web UI
PHOTOPRISM_DISABLE_TENSORFLOW: "false" # Disables using TensorFlow for image classification
PHOTOPRISM_DARKTABLE_PRESETS: "false" # Enables Darktable presets and disables concurrent RAW conversion
PHOTOPRISM_DETECT_NSFW: "false" # Flag photos as private that MAY be offensive (requires TensorFlow)
PHOTOPRISM_UPLOAD_NSFW: "true" # Allow uploads that MAY be offensive
PHOTOPRISM_DATABASE_DRIVER: "mysql" # Use MariaDB (or MySQL) instead of SQLite for improved performance
PHOTOPRISM_DATABASE_SERVER: "mariadb:3306" # MariaDB database server hostname (:port is optional)
PHOTOPRISM_DATABASE_NAME: "photoprism" # MariaDB database schema name
PHOTOPRISM_DATABASE_USER: "photoprism" # MariaDB database user name
PHOTOPRISM_DATABASE_PASSWORD: "insecure" # MariaDB database user password
PHOTOPRISM_SITE_URL: "http://localhost:2342/" # Public PhotoPrism URL
PHOTOPRISM_SITE_TITLE: "PhotoPrism"
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
PHOTOPRISM_SITE_DESCRIPTION: ""
PHOTOPRISM_SITE_AUTHOR: ""
volumes:
# Your photo and video files (multiple directories or drives can be indexed by mounting them as sub-folders):
- "~/Pictures:/photoprism/originals/Pictures"
# - "D:/Pictures:/photoprism/originals/Pictures"
# - "E:/Friends:/photoprism/originals/Friends"
# Mounting an import folder is optional (see docs):
# - "E:/:/photoprism/import"
# Permanent storage for settings, index & sidecar files (DON'T REMOVE):
- "./storage:/photoprism/storage"
mariadb:
image: mariadb:10.5
restart: unless-stopped
security_opt:
- seccomp:unconfined
- apparmor:unconfined
command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
volumes: # Don't remove permanent storage for index database files!
- "mariadb_data:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: please_change
MYSQL_DATABASE: photoprism
MYSQL_USER: photoprism
MYSQL_PASSWORD: insecure
# Uncomment the following lines to upgrade automatically, whenever there is a new Docker image available:
#
# watchtower:
# image: containrrr/watchtower
# restart: unless-stopped
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock"
volumes:
mariadb_data:
driver: local
Alles anzeigen
Ja genau so dachte ich, port 2342 aber da kommt nix.
Habe nur das prism image gezogen im portainer und erstellt, fertig.
Mit dem yaml file habe ich nichts gemacht.
Ich muß ihm doch den Pfad mitteilen wo die Bilder sind ?
Ich muß ihm doch den Pfad mitteilen wo die Bilder sind ?
Und noch andere Dinge. Ist alles im yaml aufgelistet.
Neben dem Photoprsm braucht du auch noch einen Datenbankcontainer. Im yaml wird maridb dafür benutzt.
Puuhhh ok, dachte ich erstelle den Container und fertig.
Na dann muß ich mir mal dieses yaml anschauen.
cu
Sieht schlimmer aus, als es ist. Sind recht viele Kommentare und Erklärungen drin. Leider nur auf Englisch.
@
Puuhhh ok, dachte ich erstelle den Container und fertig.
Na dann muß ich mir mal dieses yaml anschauen.
cu
Es ist einfacher zum Laufen zu bekommen, als ich dachte:
1) in OMV gehe auf OMV-Extras > Docker > Open Portainer
2) in Portainer gehe im linken Menue auf "Stacks"
3) klicke rechts "+ Add Stack"
4) vergebe einen Namen z.Bsp. "photoprism"
5) lass "Web Editor" selektiert und kopiere den Inhalt der angepassten docker-compose Datei in die Textarea
6) klicke "Deploy stack"
7) warte ein paar Sekunden und rufe im Browser auf: http://<YOUR_OMV_IP>:2342
8.) melde dich dort mit dem Passwort an, das du in der docker-compose Datei definiert hast
Fertig.
Abweichend zu der in der Dokumentation gezeigten docker-compose Datei musste ich in Zeile 78 einen absoluten und keinen relativen Pfad zu meinen Fotos angeben.
Hier ist meine docker-compose Datei, in der du folgende Werte ersetzen musst:
version: '3.5'
# Example Docker Compose config file for PhotoPrism (Linux / AMD64)
#
# Documentation : https://docs.photoprism.org/getting-started/docker-compose/
# Docker Hub URL: https://hub.docker.com/r/photoprism/photoprism/
#
# Please run behind a reverse proxy like Caddy, Traefik or Nginx if you need HTTPS / SSL support
# e.g. when running PhotoPrism on a public server outside your home network.
#
# ------------------------------------------------------------------
# DOCKER COMPOSE COMMAND REFERENCE
# ------------------------------------------------------------------
# Start | docker-compose up -d
# Stop | docker-compose stop
# Update | docker-compose pull
# Logs | docker-compose logs --tail=25 -f
# Terminal | docker-compose exec photoprism bash
# Help | docker-compose exec photoprism photoprism help
# Config | docker-compose exec photoprism photoprism config
# Reset | docker-compose exec photoprism photoprism reset
# Backup | docker-compose exec photoprism photoprism backup -a -i
# Restore | docker-compose exec photoprism photoprism restore -a -i
# Index | docker-compose exec photoprism photoprism index
# Reindex | docker-compose exec photoprism photoprism index -a
# Import | docker-compose exec photoprism photoprism import
# -------------------------------------------------------------------
# Note: All commands may have to be prefixed with "sudo" when not running as root.
# This will change the home directory "~" to "/root" in your configuration.
services:
photoprism:
# Use photoprism/photoprism:preview instead for testing preview builds:
image: photoprism/photoprism:latest
# Only enable automatic restarts once your installation is properly
# configured as it otherwise may get stuck in a restart loop:
# https://docs.photoprism.org/getting-started/faq/#why-is-photoprism-getting-stuck-in-a-restart-loop
# restart: unless-stopped
security_opt:
- seccomp:unconfined
- apparmor:unconfined
ports:
- 2342:2342 # [local port]:[container port]
environment:
PHOTOPRISM_ADMIN_PASSWORD: "YOURPASSWORD" # PLEASE CHANGE: Your initial admin password (min 4 characters)
PHOTOPRISM_HTTP_PORT: 2342 # Built-in Web server port
PHOTOPRISM_HTTP_COMPRESSION: "gzip" # Improves transfer speed and bandwidth utilization (none or gzip)
PHOTOPRISM_DEBUG: "false" # Run in debug mode (shows additional log messages)
PHOTOPRISM_PUBLIC: "false" # No authentication required (disables password protection)
PHOTOPRISM_READONLY: "false" # Don't modify originals directory (reduced functionality)
PHOTOPRISM_EXPERIMENTAL: "false" # Enables experimental features
PHOTOPRISM_DISABLE_WEBDAV: "false" # Disables built-in WebDAV server
PHOTOPRISM_DISABLE_SETTINGS: "false" # Disables Settings in Web UI
PHOTOPRISM_DISABLE_TENSORFLOW: "false" # Disables using TensorFlow for image classification
PHOTOPRISM_DARKTABLE_PRESETS: "false" # Enables Darktable presets and disables concurrent RAW conversion
PHOTOPRISM_DETECT_NSFW: "false" # Flag photos as private that MAY be offensive (requires TensorFlow)
PHOTOPRISM_UPLOAD_NSFW: "true" # Allow uploads that MAY be offensive
# PHOTOPRISM_DATABASE_DRIVER: "sqlite" # SQLite is an embedded database that doesn't require a server
PHOTOPRISM_DATABASE_DRIVER: "mysql" # Use MariaDB (or MySQL) instead of SQLite for improved performance
PHOTOPRISM_DATABASE_SERVER: "mariadb:3306" # MariaDB database server (hostname:port)
PHOTOPRISM_DATABASE_NAME: "photoprism" # MariaDB database schema name
PHOTOPRISM_DATABASE_USER: "photoprism" # MariaDB database user name
PHOTOPRISM_DATABASE_PASSWORD: "YOURPASSWORD" # MariaDB database user password
PHOTOPRISM_SITE_URL: "http://YOUR_OMV_IP:2342/" # Public PhotoPrism URL
PHOTOPRISM_SITE_TITLE: "PhotoPrism"
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
PHOTOPRISM_SITE_DESCRIPTION: ""
PHOTOPRISM_SITE_AUTHOR: ""
# You may optionally set a user / group id using environment variables if your Docker version or NAS does not
# support this natively (see next example):
# UID: 1000
# GID: 1000
# UMASK: 0000
# Uncomment and edit the following line to set a specific user / group id (native):
# user: "1000:1000"
volumes:
# Your photo and video files ([local path]:[container path]):
- "/ABSOLUTE/PATH/TO/YOUR/PHOTOS:/photoprism/originals"
# Multiple folders can be indexed by mounting them as sub-folders of /photoprism/originals:
# - "/mnt/Family:/photoprism/originals/Family" # [folder_1]:/photoprism/originals/[folder_1]
# - "/mnt/Friends:/photoprism/originals/Friends" # [folder_2]:/photoprism/originals/[folder_2]
# Mounting an import folder is optional (see docs):
# - "~/Import:/photoprism/import"
# Permanent storage for settings, index & sidecar files (DON'T REMOVE):
- "./storage:/photoprism/storage"
mariadb:
image: mariadb:10.5
restart: unless-stopped
security_opt:
- seccomp:unconfined
- apparmor:unconfined
command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
volumes: # Don't remove permanent storage for index database files!
- "./database:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: YOURPASSWORD
MYSQL_DATABASE: photoprism
MYSQL_USER: photoprism
MYSQL_PASSWORD: YOURPASSWORD
# Uncomment the following lines to upgrade automatically, whenever there is a new Docker image available:
#
# watchtower:
# image: containrrr/watchtower
# restart: unless-stopped
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock"
Alles anzeigen
PS: Ich habe Photoprism wieder deinstalliert (einfach den Stack in Portainer entfernen), weil es mir nicht gefiel. Schlecht umgesetzt fand ich z.Bsp. die Suche: obwohl meine Fotos getaggt waren, und Photoprism die Tags auch angezeigt hat, konnte Photoprism die Fotos nicht finden, wenn ich nach diesen Tags gesucht habe.
Photoprism hat übrigens die Fotos selbst mit seinen eigenen Kategorien getaggt. Der Prozess dauerte aber selbst für meine kleine Testauswahl von weniger als 100 Fotos schon recht lange aber immerhin konnte man dann nach diesen Tags suchen und auch finden. Problem war, dass die Tags teilweise total daneben lagen und man keinen Einfluss hat, welche Art von Tags automatisch erstellt werden sollen.
Besser wäre gewesen, dass Photoprism bereits getaggte Fotos als Vorlage benutzt und ähnliche Fotos mit den gleichen Tags tagged. Dass Photoprism aber nicht mal bereits getaggte Fotos anhand ihrer Tags finden kann, war für mich das No-Go schlechthin und der Grund, es zu deinstallieren.
Man kann zwar auch manuell Tags hinzufügen, aber dazu ist die Oberfläche viel zu rudimentär, um das effizient machen zu können.
Und leider werkeln die Entwickler immer noch an der face-recognition. Die hätte ich gerne mal getestet, aber ist leider noch nicht verfügbar.
Ich habe Photoprism wieder deinstalliert
Hast du etwas anderes im Einsatz, was die Nachteile nicht hat?
Hast du etwas anderes im Einsatz, was die Nachteile nicht hat?
Nein.
Mein Ziel war, dass ich meine Bilder, die auf OMV sind, von jedem Gerät im lokalen Netzwerk einfach durchsuchen und anschauen kann. Daher wäre eine Web-Anwendung schon ganz praktisch.
Momentan habe ich auf den Endgeräten (Mac, Linux, Windows) XnViewMP installiert und greife über FTP auf die Bilder zu.
Vorteile:
Nachteile:
Ich hatte mir auch mal kurz Piwigo angeschaut, das man auch kostenlos selbst hosten kann. Es machte einen besseren Eindruck als Photoprism, hat mich letztlich aber auch nicht vollends überzeugt.
Habt ihr andere Ideen, um Bilder, die auf OMV gespeichert sind, im lokalen Netzwerk nach Tags durchsuchbar anzubinden?
Nachdem ich noch eine paar weitere Gallery-Software ausprobiert habe, kommt pigallery2 bis jetzt meinen Anforderungen am nähesten.
Hi,
hört sich gut an muß ich mal anschauen.
Was bei mir mehr ausschlaggebend wäre, da ich ein ATV habe würde ich die Bilder gerne darüber anschauen und bedienen.
Jellyfin fand ich ganz gut aber leider noch keine APP für das ATV nur über 3 Anbieter.
da ich ein ATV habe
Was ist ein ATV? Ich kannte das bisher nur als Quad aber bezweifle, dass du darüber Bilder anschauen möchtest
Haha ja wäre bestimmt auch nicht schlecht
Apple TV meine ich.
Es gibt zwar Plex aber für Bilder mußt zahlen.
Genauso wie Emby.
Jellyfin macht für mich den besten Eindruck.
Für das Apple TV gibt es aber leider nur bezahl Varianten, genauso wie für SAT over IP.
TVHeadend mußt warten immer oder löhnen.
cu
Moin,
hab vorgestern auch mal Photoprism per Docker auf OMV 5 installiert, ging mit portainer auch recht einfach.
ich hatte einfach das image von dockerHub geladen.
nur mit dem Pfad zu meinen Bildern hab ich es mir unnötig kompliziert gemacht weil ich keine Ahnung von Docker habe
Daher besser wie oben das Yaml nehmen.
Schreibt mich an, wenn ihr noch mal Unterstützung braucht.
Wegen den Funktionen bin ich noch am ausprobieren, der Index läuft noch (dauert verdammt lange).
Ansonsten hatte ich noch LibrePhotos als Alternative entdeckt, aber nicht ausprobiert:
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!