Update path to new photoprism docker image based on Debian Bookworm
This commit is contained in:
parent
217b94698c
commit
b5ae1a7207
4 changed files with 7 additions and 7 deletions
|
@ -89,7 +89,7 @@ files.directory(
|
||||||
)
|
)
|
||||||
|
|
||||||
# If the binary is here, undockerized image should be fine, don't extract again
|
# If the binary is here, undockerized image should be fine, don't extract again
|
||||||
if not host.fact.file(host.data.undocker_dst+'/photoprism/bin/photoprism'):
|
if not host.fact.file(host.data.undocker_dst+'/opt/photoprism/bin/photoprism'):
|
||||||
server.shell(
|
server.shell(
|
||||||
name='Undocker the Docker image',
|
name='Undocker the Docker image',
|
||||||
chdir=host.data.undocker_dst,
|
chdir=host.data.undocker_dst,
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# From Dockerfile
|
# From Dockerfile
|
||||||
PHOTOPRISM_ASSETS_PATH="/photoprism/assets"
|
PHOTOPRISM_ASSETS_PATH="/opt/photoprism/assets"
|
||||||
PHOTOPRISM_STORAGE_PATH="/photoprism/storage"
|
PHOTOPRISM_STORAGE_PATH="/photoprism/storage"
|
||||||
PHOTOPRISM_BACKUP_PATH="/var/lib/photoprism"
|
PHOTOPRISM_BACKUP_PATH="/photoprism/storage/backups"
|
||||||
PHOTOPRISM_ORIGINALS_PATH="/photoprism/originals"
|
PHOTOPRISM_ORIGINALS_PATH="/photoprism/originals"
|
||||||
PHOTOPRISM_IMPORT_PATH="/photoprism/import"
|
PHOTOPRISM_IMPORT_PATH="/photoprism/import"
|
||||||
PHOTOPRISM_LOG_FILENAME="/photoprism/photoprism.log"
|
PHOTOPRISM_LOG_FILENAME="/photoprism/storage/photoprism.log"
|
||||||
PHOTOPRISM_PID_FILENAME="/photoprism/photoprism.pid"
|
PHOTOPRISM_PID_FILENAME="/photoprism/storage/photoprism.pid"
|
||||||
PHOTOPRISM_DEBUG="false"
|
PHOTOPRISM_DEBUG="false"
|
||||||
PHOTOPRISM_PUBLIC="false"
|
PHOTOPRISM_PUBLIC="false"
|
||||||
PHOTOPRISM_READONLY="false"
|
PHOTOPRISM_READONLY="false"
|
||||||
|
|
|
@ -12,7 +12,7 @@ WorkingDirectory=/photoprism
|
||||||
RootDirectory={{ host.data.undocker_dst }}
|
RootDirectory={{ host.data.undocker_dst }}
|
||||||
BindPaths={{ host.data.photoprism_storage_src }}:/photoprism/storage {{ host.data.photoprism_originals_src }}:/photoprism/originals {{ host.data.photoprism_import_src }}:/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 /proc
|
BindReadOnlyPaths=/etc/resolv.conf /proc
|
||||||
ExecStart=/photoprism/bin/photoprism start
|
ExecStart=/opt/photoprism/bin/photoprism start
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -13,4 +13,4 @@ systemd-run \
|
||||||
--property=RootDirectory={{ host.data.undocker_dst }} \
|
--property=RootDirectory={{ host.data.undocker_dst }} \
|
||||||
--property='BindPaths={{ host.data.photoprism_storage_src }}:/photoprism/storage {{ host.data.photoprism_originals_src }}:/photoprism/originals {{ host.data.photoprism_import_src }}:/photoprism/import' \
|
--property='BindPaths={{ host.data.photoprism_storage_src }}:/photoprism/storage {{ host.data.photoprism_originals_src }}:/photoprism/originals {{ host.data.photoprism_import_src }}:/photoprism/import' \
|
||||||
--property='BindReadOnlyPaths=/etc/resolv.conf /proc' \
|
--property='BindReadOnlyPaths=/etc/resolv.conf /proc' \
|
||||||
/photoprism/bin/photoprism $1
|
/opt/photoprism/bin/photoprism $1
|
||||||
|
|
Reference in a new issue