17 lines
460 B
Bash
Executable File
17 lines
460 B
Bash
Executable File
#! /bin/sh
|
|
|
|
image=bpatrik/pigallery2:latest
|
|
[ -f upgrade ] && podman pull $image && rm upgrade
|
|
|
|
me=$(basename $(pwd))
|
|
podman rm -f $me
|
|
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 \
|
|
--volume /home/ginnie/Photos:/photos/ginnie:ro \
|
|
$image
|