stacks/homelab/nextcloud/run

20 lines
434 B
Plaintext
Raw Normal View History

2024-11-28 13:36:19 -07:00
#! /bin/sh
exec 2>&1
image=nextcloud
[ -f upgrade ] && podman pull $image && rm upgrade
me=$(basename $(pwd))
podman rm -f $me
podman run \
--name $me \
--network homelab \
--memory 2g \
--volume /srv/sys/nextcloud:/var/www/html \
--volume /srv/storage:/srv/storage \
--volume /srv/media:/srv/media \
--volume /srv/incoming:/srv/incoming \
--volume /srv/sys/nextcloud/bin/ffmpeg:/usr/local/bin/ffmpeg:ro \
$image