improved docker-compose-up-all.sh

This commit is contained in:
Samuel Philipp 2020-12-13 23:40:43 +01:00
parent 5fbde6036d
commit 8e1af22017

View file

@ -3,10 +3,12 @@
for dir in */; do
service="${dir/\//}"
if [ -f "$service/docker-compose.yml" ]; then
cd "$service" || exit 1
echo "pull $service"
docker-compose -f "$service/docker-compose.yml" pull
docker-compose pull
echo "up $service"
docker-compose -f "$service/docker-compose.yml" up --build --remove-orphans -d
docker-compose up --build --remove-orphans -d
cd ..
fi
done