forked from mtusi2026/mtusi2026lab5
10 lines
482 B
Bash
10 lines
482 B
Bash
#!/bin/sh
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
# 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
|