Update 'docker-compose-up-all.sh'

This commit is contained in:
Samuel Philipp 2023-08-08 18:24:38 +00:00
parent c4572898d5
commit aaa1d238e0

View file

@ -4,10 +4,19 @@ for dir in */; do
service="${dir/\//}"
if [ -f "$service/docker-compose.yml" ]; then
cd "$service" || exit 1
if [ -f "pre-deploy.sh" ]; then
echo "pre deploy"
./pre-deploy.sh
fi
echo "pull $service"
docker-compose pull
docker compose pull
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 ..
fi
done