This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
pyinfra-photoprism/README.md

39 lines
865 B
Markdown
Raw Normal View History

2021-09-26 04:59:46 +00:00
# photoprism
2021-09-26 12:23:55 +00:00
Pyinfra that deploy PhotoPrism un-dockerized on a Debian 11 LXD container.
2021-09-26 05:18:04 +00:00
# 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
2021-09-26 12:23:55 +00:00
# ###!!!### Edit group_data/production.py
2021-09-27 08:39:14 +00:00
# pyinfra inventories/production.py deploy.py
2021-09-26 05:18:04 +00:00
```
# Attach a pictures volume
2021-09-26 12:23:55 +00:00
If required, you can mount external volumes. Example:
```
2021-09-27 11:56:18 +00:00
# lxc config device add <name> <name>_disk disk source=/dev/vdf path=/mnt/pictures readonly=true raw.mount.options=noload
2021-09-26 12:23:55 +00:00
```
Then add it to `group_data/production.py`:
```
2021-09-27 08:51:50 +00:00
photoprism_originals_src='/mnt/pictures'
```
2021-09-27 11:56:18 +00:00
# Run photoprism command
A systemd-run wrapper is installed and you can use it via `/usr/local/bin/photoprism`.
```
# /usr/local/bin/photoprism config
```