added docker-compose-up-all.sh

This commit is contained in:
Samuel Philipp 2020-06-15 17:33:04 +02:00
parent 47ea507658
commit 5fb1f5ab6d
2 changed files with 9 additions and 2 deletions

7
docker-compose-up-all.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
for dir in */; do
echo "up $dir"
docker-compose -f "$dir/docker-compose.yml" up -d
done

View file

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
URL="https://git.sp-codes.de/samuel-p/awesome-scripts/raw/branch/master/" URL="https://git.sp-codes.de/samuel-p/awesome-scripts/raw/branch/master/"
SCRIPTS=("healthcheck.sh" "login-notify.sh" "validate-remote-backup.sh") SCRIPTS=("healthcheck.sh" "login-notify.sh" "validate-remote-backup.sh" "docker-compose-up-all.sh")
for script in "${SCRIPTS[@]}"; do for script in "$@"; do
echo "Downloading $script" echo "Downloading $script"
curl "$URL$script" >"$script" curl "$URL$script" >"$script"
chmod +x "$script" chmod +x "$script"