Add special config for starting and stopping pihole containers

This commit is contained in:
Chris King
2025-03-20 17:12:57 -07:00
parent 9c069522b0
commit 6fe9d38f9a
2 changed files with 12 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ for folder in "$@"; do
continue
}
# if folder is "pihole" then run "docker compose --env-file winterfell.env down --remove-orphans"
if [ "$folder" == "pihole" ]; then
docker compose --env-file winterfell.env up -d
continue
fi
#echo "would docker compose up -d in /docker/$folder"
docker compose up -d
done

View File

@@ -11,5 +11,11 @@ for folder in "$@"; do
continue
}
# if folder is "pihole" then run "docker compose --env-file winterfell.env down --remove-orphans"
if [ "$folder" == "pihole" ]; then
docker compose --env-file winterfell.env down --remove-orphans
continue
fi
docker compose down --remove-orphans
done