This repository has been archived on 2023-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
awesome-scripts/docker-compose-up-all.sh

11 lines
245 B
Bash
Raw Normal View History

2020-06-15 15:33:04 +00:00
#!/bin/bash
for dir in */; do
2020-07-03 14:03:25 +00:00
echo "pull $dir"
docker-compose -f "$dir/docker-compose.yml" pull
2020-06-15 15:33:04 +00:00
echo "up $dir"
2020-07-03 14:03:25 +00:00
docker-compose -f "$dir/docker-compose.yml" up --build --remove-orphans -d
2020-06-15 15:33:04 +00:00
done
2020-09-04 15:49:29 +00:00
docker system prune --all --volumes --force