43 lines
1.2 KiB
Markdown
43 lines
1.2 KiB
Markdown
# Photoprism
|
|
|
|
What we are really running on this machine is Photoprism using this [docker-compose](../docker/photoprism/docker-compose.yml) file, like this:
|
|
|
|
```sh
|
|
cd ~/projects/stuff/docker/photoprism
|
|
docker compose up --detach
|
|
```
|
|
|
|
To stop it:
|
|
|
|
```sh
|
|
docker compose down
|
|
```
|
|
|
|
To update it:
|
|
|
|
```sh
|
|
docker compose pull
|
|
```
|
|
|
|
Photoprism is running on: https://photos.allisonandmoni.online/
|
|
|
|
I have set up a Systemd service and timer to automatically run the import once an hour. They can be found:
|
|
|
|
* [photoprism_import.service](./scripts/photoprism_import.service)
|
|
* [photoprism_import_timer.service](./scripts/photoprism_import_timer.service)
|
|
|
|
To install:
|
|
|
|
```sh
|
|
cp -v photoprism_import.service /etc/systemd/system/
|
|
cp -v photoprism_import.timer /etc/systemd/system/
|
|
```
|
|
|
|
Enable:
|
|
|
|
```sh
|
|
systemctl enable photoprism_import.service
|
|
systemctl enable photoprism_import.timer
|
|
```
|
|
|
|
In the `compose.yaml` file you'll notice I have the files stored in `/home/photoprism`. That's because I thought I could run it with podman as a dedicated user. I abandoned that idea and am now running it in Docker instead. The directories `/home/photoprism/Pictures` and `/home/photoprism/Import` are all owned by `root`
|