forked from mtusi2026/mtusi2026lab5
included rabbitmq as broker
This commit is contained in:
+9
-4
@@ -22,11 +22,16 @@ wait_healthy() {
|
||||
done
|
||||
}
|
||||
|
||||
compose stop cleanup
|
||||
compose restart postgres redis minio
|
||||
wait_healthy postgres redis minio
|
||||
worker_running=$(compose ps --status running --quiet worker)
|
||||
compose stop worker publisher cleanup
|
||||
compose restart postgres redis minio broker
|
||||
wait_healthy postgres redis minio broker
|
||||
compose restart api
|
||||
wait_healthy api
|
||||
compose restart nginx
|
||||
wait_healthy nginx
|
||||
compose start cleanup
|
||||
compose start publisher cleanup
|
||||
# Сценарий с заранее остановленным worker сохраняет его остановленным.
|
||||
if [ -n "$worker_running" ]; then
|
||||
compose start worker
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user