stacks/homelab/deploy.sh

11 lines
190 B
Bash
Executable File

#! /bin/sh
caddy_hash () {
echo -n "$1 "
echo "$2" | docker run --rm -i caddy caddy hash-password
}
stack=$(basename $(pwd))
docker stack deploy -c docker-compose.yaml --prune $stack