Update 'docker-compose-up-all.sh'
This commit is contained in:
parent
c4572898d5
commit
aaa1d238e0
1 changed files with 11 additions and 2 deletions
|
@ -4,10 +4,19 @@ 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
|
cd "$service" || exit 1
|
||||||
|
if [ -f "pre-deploy.sh" ]; then
|
||||||
|
echo "pre deploy"
|
||||||
|
./pre-deploy.sh
|
||||||
|
fi
|
||||||
echo "pull $service"
|
echo "pull $service"
|
||||||
docker-compose pull
|
docker compose pull
|
||||||
echo "up $service"
|
echo "up $service"
|
||||||
docker-compose up --build --remove-orphans -d
|
docker compose up --build --remove-orphans -d
|
||||||
|
if [ -f "post-deploy.sh" ]; then
|
||||||
|
sleep 30
|
||||||
|
echo "post deploy"
|
||||||
|
./post-deploy.sh
|
||||||
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Reference in a new issue