stacks/homelab/auth/run

17 lines
334 B
Bash
Executable File

#! /bin/sh
exec 2>&1
image=quay.io/oauth2-proxy/oauth2-proxy
[ -f upgrade ] && podman pull $image && rm upgrade
me=$(basename $(pwd))
podman rm -f $me
podman run \
--name $me \
--network homelab \
--name auth \
--volume /srv/secrets/oauth2-proxy.cfg:/etc/oauth2-proxy.cfg:ro \
$image \
--config=/etc/oauth2-proxy.cfg