stacks/homelab/caddy/run

20 lines
388 B
Plaintext
Raw Normal View History

2023-12-28 10:07:43 -07:00
#! /bin/sh
2024-11-28 13:34:56 -07:00
exec 2>&1
2024-11-28 13:36:19 -07:00
image=caddy:2-alpine
[ -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 \
--publish 80:80 \
--publish 443:443 \
--volume /srv:/srv:ro \
--volume /srv/sys/caddy:/data/caddy \
--volume ./Caddyfile:/etc/caddy/Caddyfile:ro \
--add-host host.lan:192.168.86.2 \
2024-11-28 13:36:19 -07:00
$image