stacks/homelab/ircd/run

18 lines
371 B
Bash
Executable File

#! /bin/sh
exec 2>&1
image=ghcr.io/ergochat/ergo
[ -f upgrade ] && podman pull $image && rm upgrade
me=$(basename $(pwd))
podman rm -f $me
podman run \
--name $me \
--publish 6697:6697 \
--network homelab \
--volume /srv/sys/ircd:/ircd/ \
--volume /srv/sys/caddy/certificates/acme-v02.api.letsencrypt.org-directory/irc.woozle.org/:/ircd/certs:ro \
$image