Photoprism: Netzwerk kann nicht gefunden werden (Container Manager)

newbillabong

Benutzer
Registriert
07. Sep. 2008
Beiträge
139
Reaktionspunkte
2
Punkte
18
Hallo zusammen

Ich habe mittels Container Manager Photoprism auf meiner DS-1518+ zu installieren versucht. Die entsprechende *.yml Datei habe ich soweit angepasst und auch die Maria DB installiert und konfiguriert. Die Installation wird aber nicht abgeschlossen und ich erhalte die folgende Fehlermeldung:

1740729658525.png

Hat jemand eine Ahnung was ich falsch mache? --> network mvl declared as external, but could not be found.
 
Poste doch mal die yaml-Datei
 
Hi *kw*

Vielen Dank für das schnelle Feedback. Im Anhang sende ich meine yaml Datei. Ich habe diese nochmals angepasst und dann nochmals neu versucht. Mit der Anpassung network bridge statt mvl kam ich einen schritt weiter. Dann habe ich eine neue Option gefunden. Aber bei dieser konnte ich kein Webportal definieren und photoprism stoppt immer wieder.
Ich denke, ich sollte das ganze nochmals löschen und neu anfangen.

Vielleicht hat jemand eine Idee, wie ich dies besser machen kann?

LG Walo


*********************************************************************************************************************************

Code:
version: '3.5'



# Example Docker Compose config file for PhotoPrism (Linux / AMD64)

#

# Note:

# - Running PhotoPrism on a server with less than 4 GB of swap space or setting a memory/swap limit can cause unexpected

#   restarts ("crashes"), for example, when the indexer temporarily needs more memory to process large files.

# - If you install PhotoPrism on a public server outside your home network, please always run it behind a secure

#   HTTPS reverse proxy such as Traefik or Caddy. Your files and passwords will otherwise be transmitted

#   in clear text and can be intercepted by anyone, including your provider, hackers, and governments:

#   https://docs.photoprism.app/getting-started/proxies/traefik/

#

# Setup Guides:

# - https://docs.photoprism.app/getting-started/docker-compose/

# - https://docs.photoprism.app/getting-started/raspberry-pi/

# - https://www.photoprism.app/kb/activation

#

# Troubleshooting Checklists:

# - https://docs.photoprism.app/getting-started/troubleshooting/

# - https://docs.photoprism.app/getting-started/troubleshooting/docker/

# - https://docs.photoprism.app/getting-started/troubleshooting/mariadb/

#

# CLI Commands:

# - https://docs.photoprism.app/getting-started/docker-compose/#command-line-interface

#

# All commands may have to be prefixed with "sudo" when not running as root.

# This will point the home directory shortcut ~ to /root in volume mounts.



services:



  ## Database Server (recommended)

  ## see https://docs.photoprism.app/getting-started/faq/#should-i-use-sqlite-mariadb-or-mysql

  mariadb:

    image: mariadb:10.11

    ## If MariaDB gets stuck in a restart loop, this points to a memory or filesystem issue:

    ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors

    restart: unless-stopped

    stop_grace_period: 5s

    security_opt: # see https://github.com/MariaDB/mariadb-docker/issues/434#issuecomment-1136151239

      - seccomp:unconfined

      - apparmor:unconfined

    command: mariadbd --innodb-buffer-pool-size=512M --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=120

    ## Never store database files on an unreliable device such as a USB flash drive, an SD card, or a shared network folder:

    volumes:

      - "/volume1/docker/photoprism/database:/var/lib/mysql" # DO NOT REMOVE

    env_file:

      - stack.env

    networks:

      default:

          ipv4_address: 192.168.1.150



  photoprism:

    ## Use photoprism/photoprism:preview for testing preview builds:

    image: photoprism/photoprism:latest

    ## Don't enable automatic restarts until PhotoPrism has been properly configured and tested!

    ## If the service gets stuck in a restart loop, this points to a memory, filesystem, network, or database issue:

    ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors

    # restart: unless-stopped

    stop_grace_period: 10s

    depends_on:

      - mariadb

    security_opt:

      - seccomp:unconfined

      - apparmor:unconfined

    ports:

      - "2342:2342" # HTTP port (host:container)

    env_file:

      - stack.env

    ## Start as non-root user before initialization (supported: 0, 33, 50-99, 500-600, and 900-1200):

    # user: "1000:1000"

    ## Share hardware devices with FFmpeg and TensorFlow (optional):

    # devices:

    #  - "/dev/dri:/dev/dri"                         # Intel QSV

    #  - "/dev/nvidia0:/dev/nvidia0"                 # Nvidia CUDA

    #  - "/dev/nvidiactl:/dev/nvidiactl"

    #  - "/dev/nvidia-modeset:/dev/nvidia-modeset"

    #  - "/dev/nvidia-nvswitchctl:/dev/nvidia-nvswitchctl"

    #  - "/dev/nvidia-uvm:/dev/nvidia-uvm"

    #  - "/dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools"

    #  - "/dev/video11:/dev/video11"                 # Video4Linux Video Encode Device (h264_v4l2m2m)

    working_dir: "/photoprism" # do not change or remove

    ## Storage Folders: "~" is a shortcut for your home directory, "." for the current directory

    volumes:

      # "/host/folder:/photoprism/folder"                # Example

      - "/volume1/Photo:/photoprism/originals"               # Original media files (DO NOT REMOVE)

      # - "/example/family:/photoprism/originals/family" # *Additional* media folders can be mounted like this

      - "/volume1/docker/photoprism/imports:/photoprism/import"                    # *Optional* base folder from which files can be imported to originals

      - "/volume1/docker/photoprism/storage:/photoprism/storage"                  # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE)

      ### Workaround for error "import: convert: cache resources exhausted"

      # Copy /etc/ImageMagick-6/policy.xml to /photoprism/storage/policy.xml

      # Change

      # <policy domain="resource" name="disk" value="1GiB"/>

      # to

      # <policy domain="resource" name="disk" value="8GiB"/>

      # Uncomment the line below:

      # - "/volume3/docker/photoprism/storage/policy.xml:/etc/ImageMagick-6/policy.xml"

    networks:

        default:

            ipv4_address: 192.168.1.151



networks:

  default:

    name: bridge

    external: true
 
Zuletzt bearbeitet:
PS: editier mal und pack das ganze in die Code-Funktion, dann liest sich's besser und schluckt die Bordformatierung

code.jpg
 
Hallo zusammen

Ich habe nun die offizielle yaml benutzt. Die Installation schien erfolgreich und sowohl die MariaDB als auch photoprsm wurden als gestartet (grün" angezeigt.

1740749845714.png

Allerdings kann ich beim Erstellen des Projektsim Container Manager kein Webportal via Webstation anlegen. Frage mich, wie ich dann auf photoprism kommen kann. Photoprism und die Datenbank laufen. Aber wie gelange ich denn nun zur Applikation im Web?

Sorry für die blöden Fragen - bin noch ziemlich ungeübt.

LG Walo
 
Zuletzt bearbeitet:
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat