improved docker-compose-up-all.sh
This commit is contained in:
parent
5fbde6036d
commit
8e1af22017
1 changed files with 4 additions and 2 deletions
|
@ -3,10 +3,12 @@
|
||||||
for dir in */; do
|
for dir in */; do
|
||||||
service="${dir/\//}"
|
service="${dir/\//}"
|
||||||
if [ -f "$service/docker-compose.yml" ]; then
|
if [ -f "$service/docker-compose.yml" ]; then
|
||||||
|
cd "$service" || exit 1
|
||||||
echo "pull $service"
|
echo "pull $service"
|
||||||
docker-compose -f "$service/docker-compose.yml" pull
|
docker-compose pull
|
||||||
echo "up $service"
|
echo "up $service"
|
||||||
docker-compose -f "$service/docker-compose.yml" up --build --remove-orphans -d
|
docker-compose up --build --remove-orphans -d
|
||||||
|
cd ..
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Reference in a new issue