Updated start/stop scripts to use docker compose, as docker-compose has been deprecated

This commit is contained in:
Thord Johansson 2024-07-21 12:27:53 +02:00
parent 0cf401ac8c
commit e4d9f69e3f
3 changed files with 8 additions and 10 deletions

4
naspi/all-start.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# will skip folders with a leading "_" (indicating not used)
for d in ./[^_]*/ ; do (cd $d && docker compose up -d && cd ..); done

4
naspi/all-stop.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# will skip folders with a leading "_" (indicating not used)
for d in ./[^_]*/ ; do (cd $d && docker compose down && cd ..); done

View File

@ -1,10 +0,0 @@
#!/bin/bash
if [ $(basename $(readlink $PWD)) != $(hostname) ]; then
echo "Incorrect directory for host"
exit 1
fi
# will skip folders with a leading "_" (indicating not used)
for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done