fix: Add devices

This commit is contained in:
Laur Ivan 2023-01-20 19:12:04 +01:00
parent 715bc0f63b
commit 677367986e
2 changed files with 19 additions and 11 deletions

View File

@ -86,3 +86,14 @@ photoprism:
password: "insecure" # MariaDB or MySQL database user password password: "insecure" # MariaDB or MySQL database user password
root_password: "insecure" # MariaDB or MySQL database ROOT password root_password: "insecure" # MariaDB or MySQL database ROOT password
name: "photoprism" # MariaDB or MySQL database schema name name: "photoprism" # MariaDB or MySQL database schema name
## 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)

View File

@ -65,16 +65,13 @@ services:
# - "/example/family:/photoprism/originals/family" # *Additional* media folders can be mounted like this # - "/example/family:/photoprism/originals/family" # *Additional* media folders can be mounted like this
# - "~/Import:/photoprism/import" # *Optional* base folder from which files can be imported to originals # - "~/Import:/photoprism/import" # *Optional* base folder from which files can be imported to originals
- "./storage:/photoprism/storage" # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE) - "./storage:/photoprism/storage" # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE)
## Share hardware devices with FFmpeg and TensorFlow (optional):
# devices: {% if photoprism.devices is defined and photoprism.devices|length >= 1 %}
# - "/dev/dri:/dev/dri" # Intel QSV devices:
# - "/dev/nvidia0:/dev/nvidia0" # Nvidia CUDA {% for device in photoprism.devices %}
# - "/dev/nvidiactl:/dev/nvidiactl" - "{{ device }}
# - "/dev/nvidia-modeset:/dev/nvidia-modeset" {% endfor %}
# - "/dev/nvidia-nvswitchctl:/dev/nvidia-nvswitchctl" {% endif %}
# - "/dev/nvidia-uvm:/dev/nvidia-uvm"
# - "/dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools"
# - "/dev/video11:/dev/video11" # Video4Linux Video Encode Device (h264_v4l2m2m)
## Database Server (recommended) ## Database Server (recommended)
## see https://docs.photoprism.app/getting-started/faq/#should-i-use-sqlite-mariadb-or-mysql ## see https://docs.photoprism.app/getting-started/faq/#should-i-use-sqlite-mariadb-or-mysql