Update path to new photoprism docker image based on Debian Bookworm

This commit is contained in:
Benoit S 2022-05-27 21:52:20 +09:00
parent 217b94698c
commit b5ae1a7207
4 changed files with 7 additions and 7 deletions

View File

@ -89,7 +89,7 @@ files.directory(
)
# 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(
name='Undocker the Docker image',
chdir=host.data.undocker_dst,

View File

@ -1,11 +1,11 @@
# From Dockerfile
PHOTOPRISM_ASSETS_PATH="/photoprism/assets"
PHOTOPRISM_ASSETS_PATH="/opt/photoprism/assets"
PHOTOPRISM_STORAGE_PATH="/photoprism/storage"
PHOTOPRISM_BACKUP_PATH="/var/lib/photoprism"
PHOTOPRISM_BACKUP_PATH="/photoprism/storage/backups"
PHOTOPRISM_ORIGINALS_PATH="/photoprism/originals"
PHOTOPRISM_IMPORT_PATH="/photoprism/import"
PHOTOPRISM_LOG_FILENAME="/photoprism/photoprism.log"
PHOTOPRISM_PID_FILENAME="/photoprism/photoprism.pid"
PHOTOPRISM_LOG_FILENAME="/photoprism/storage/photoprism.log"
PHOTOPRISM_PID_FILENAME="/photoprism/storage/photoprism.pid"
PHOTOPRISM_DEBUG="false"
PHOTOPRISM_PUBLIC="false"
PHOTOPRISM_READONLY="false"

View File

@ -12,7 +12,7 @@ WorkingDirectory=/photoprism
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
BindReadOnlyPaths=/etc/resolv.conf /proc
ExecStart=/photoprism/bin/photoprism start
ExecStart=/opt/photoprism/bin/photoprism start
Restart=on-failure
[Install]

View File

@ -13,4 +13,4 @@ systemd-run \
--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='BindReadOnlyPaths=/etc/resolv.conf /proc' \
/photoprism/bin/photoprism $1
/opt/photoprism/bin/photoprism $1