Pyinfra that deploy PhotoPrism un-dockerized. Mostly to be used in LXD/C.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
Benoit S b5ae1a7207
Update path to new photoprism docker image based on Debian Bookworm
10 months ago
group_data More variables for undocker 1 year ago
inventories Use group_data inventory 2 years ago
templates Update path to new photoprism docker image based on Debian Bookworm 10 months ago
.gitignore Add .gitignore 2 years ago
LICENSE Initial commit 2 years ago
README.md Add upgrade procedure with remove/deploy 1 year ago
deploy.py Update path to new photoprism docker image based on Debian Bookworm 10 months ago
remove.py Add upgrade procedure with remove/deploy 1 year ago

README.md

photoprism

Pyinfra that deploy PhotoPrism un-dockerized on a Debian 11 LXD container.

Deployment

# lxc launch images:debian/11 <name>
# lxec exec <name> bash
# apt update && apt install python3-pip git
# pip install pyinfra
# git clone https://git.benpro.fr/benoit/photoprism.git
# cd photoprism
# ###!!!### Edit group_data/production.py
# pyinfra inventories/production.py deploy.py

Upgrade

Run remove.py then deploy.py.

# pyinfra inventories/production.py remove.py
# pyinfra inventories/production.py deploy.py

Attach a pictures volume

If required, you can mount external volumes. Example:

# lxc config device add <name> <name>_disk disk source=/dev/vdf path=/mnt/pictures readonly=true raw.mount.options=noload

Then add it to group_data/production.py:

photoprism_originals_src='/mnt/pictures'

Run photoprism command

A systemd-run wrapper is installed and you can use it via /usr/local/bin/photoprism.

# /usr/local/bin/photoprism config