forked from mtusi2026/mtusi2026lab5
level 3
This commit is contained in:
+4
-3
@@ -1,8 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
# Restart the LB, every API replica, PostgreSQL and MinIO. Volumes stay; nothing is re-seeded.
|
||||
docker compose --env-file .env stop lb api
|
||||
docker compose --env-file .env restart postgres minio
|
||||
# Restart the LB, every API replica, the worker, PostgreSQL, MinIO and RabbitMQ.
|
||||
# Volumes stay; nothing is re-seeded. The broker hostname is stable, so its volume keeps queued jobs.
|
||||
docker compose --env-file .env stop lb api worker
|
||||
docker compose --env-file .env restart postgres minio rabbitmq
|
||||
# Brings back all replicas (including one left stopped by stop-one.sh); migrate re-runs as a no-op.
|
||||
docker compose --env-file .env up -d --wait
|
||||
|
||||
Reference in New Issue
Block a user