renamed container starting script

added container stopping script
This commit is contained in:
fabian 2023-02-24 16:05:47 +01:00
parent 46eaa985c7
commit deac51c69e
2 changed files with 38 additions and 0 deletions

19
scripts/downContainers.sh Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# > 0 ]]; then
DOCKER_ROOT=$1;
else
DOCKER_ROOT=$(pwd);
fi
# echo $DOCKER_ROOT;
for subdir in $DOCKER_ROOT/*; do
if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" || ${subdir##*/} == "pydio_cells" || ${subdir##*/} == "mattermost" ]]; then
continue;
fi
# echo $subdir;
cd $subdir;
# echo $(pwd);
docker-compose down;
done

19
scripts/upContainers.sh Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# > 0 ]]; then
DOCKER_ROOT=$1;
else
DOCKER_ROOT=$(pwd);
fi
# echo $DOCKER_ROOT;
for subdir in $DOCKER_ROOT/*; do
if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" || ${subdir##*/} == "pydio_cells" || ${subdir##*/} == "mattermost" ]]; then
continue;
fi
# echo $subdir;
cd $subdir;
# echo $(pwd);
docker-compose up -d;
done