Added storage src path
This commit is contained in:
parent
039436e58d
commit
8ce33b0676
2 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,9 @@ unix_group='photoprism'
|
|||
unix_home='/home/photoprism'
|
||||
unix_shell='/bin/false'
|
||||
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
|
||||
photoprism_admin_password='insecure' # File size limit for originals in MB (increase for high-res video)
|
||||
|
|
|
@ -10,7 +10,7 @@ StateDirectory={{ host.data.unix_user }}
|
|||
EnvironmentFile={{ host.data.systemd_env }}
|
||||
WorkingDirectory=/photoprism
|
||||
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
|
||||
ExecStart=/photoprism/bin/photoprism start
|
||||
Restart=on-failure
|
||||
|
|
Reference in a new issue