2024-07-12 01:41:27 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# 包含docker-compose.yml文件的目录的父目录
|
|
|
|
docker_path="/var/www"
|
|
|
|
|
|
|
|
for dir in "$docker_path"/*/; do
|
|
|
|
cd "$dir" || exit
|
|
|
|
sudo docker compose pull
|
2024-07-26 21:37:01 +08:00
|
|
|
sudo docker compose up -d
|
2024-07-12 01:41:27 +08:00
|
|
|
done
|