Added storage src path

This commit is contained in:
Benoit S 2021-09-27 17:21:26 +09:00
parent 039436e58d
commit 8ce33b0676
2 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,9 @@ unix_group='photoprism'
unix_home='/home/photoprism' unix_home='/home/photoprism'
unix_shell='/bin/false' unix_shell='/bin/false'
systemd_env='/etc/photoprism.env' systemd_env='/etc/photoprism.env'
photoprism_storage_src=unix_home+'/storage'
photoprism_originals_src=unix_home+'/originals'
photoprism_import_src=unix_home+'/import'
# From docker-compose # From docker-compose
photoprism_admin_password='insecure' # File size limit for originals in MB (increase for high-res video) photoprism_admin_password='insecure' # File size limit for originals in MB (increase for high-res video)

View file

@ -10,7 +10,7 @@ StateDirectory={{ host.data.unix_user }}
EnvironmentFile={{ host.data.systemd_env }} EnvironmentFile={{ host.data.systemd_env }}
WorkingDirectory=/photoprism WorkingDirectory=/photoprism
RootDirectory={{ host.data.undocker_dst }} RootDirectory={{ host.data.undocker_dst }}
BindPaths={{ host.data.unix_home }}/storage:/photoprism/storage {{ host.data.unix_home }}/originals:/photoprism/originals {{ host.data.unix_home }}/import:/photoprism/import BindPaths={{ host.data.photoprism_storage_src }}:/photoprism/storage {{ host.data.photoprism_originals_src }}:/photoprism/originals {{ host.data.photoprism_import_src }}:/photoprism/import
BindReadOnlyPaths=/etc/resolv.conf BindReadOnlyPaths=/etc/resolv.conf
ExecStart=/photoprism/bin/photoprism start ExecStart=/photoprism/bin/photoprism start
Restart=on-failure Restart=on-failure