stacks/homelab/photos/run.pigallery2

17 lines
460 B
Plaintext
Raw Permalink Normal View History

2023-12-28 10:07:43 -07:00
#! /bin/sh
2024-11-28 13:36:19 -07:00
image=bpatrik/pigallery2:latest
[ -f upgrade ] && podman pull $image && rm upgrade
2023-12-28 10:07:43 -07:00
me=$(basename $(pwd))
2024-11-28 13:34:56 -07:00
podman rm -f $me
2023-12-28 10:07:43 -07:00
podman run \
--name $me \
--network homelab \
--volume /srv/sys/pigallery2/config:/app/data/config \
--volume /srv/sys/pigallery2/db:/app/data/db \
--volume /srv/sys/pigallery2/cache:/app/data/cache \
--volume /srv/storage/fam/Photos:/photos/fam:ro \
2024-11-28 13:34:56 -07:00
--volume /home/ginnie/Photos:/photos/ginnie:ro \
2024-11-28 13:36:19 -07:00
$image