scripts/fogcutter/docker/caddy.sh

31 lines
518 B
Bash
Raw Normal View History

2022-09-25 15:24:41 -04:00
#!/bin/bash
set -e
up () {
docker network create pew-net || true
# main caddy container
docker run \
--detach \
--name caddy \
--restart unless-stopped \
--volume /bigdata/k8s-config/caddy/Caddyfile:/etc/caddy/Caddyfile:ro \
--volume /bigdata/k8s-config/caddy/data:/data:rw \
--publish 80:80 \
--publish 443:443 \
--network pew-net \
docker.io/caddy:2.6.1
}
down () {
docker stop caddy || true
docker rm caddy || true
}
logs () {
docker logs --follow caddy
}
$@