forked from mtusi2026/mtusi2026lab7
feat(lab7): implement secure messenger infrastructure with TLS, OpenBao and observability
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
echo "[1/5] Stopping API sidecars and application services"
|
||||
docker compose stop \
|
||||
api1-mtls api2-mtls \
|
||||
api1 api2 worker dispatcher
|
||||
|
||||
echo "[2/5] Restarting persistent dependencies"
|
||||
docker compose restart db minio rabbitmq
|
||||
|
||||
echo "[3/5] Waiting for PostgreSQL and RabbitMQ"
|
||||
docker compose up -d --no-deps --wait db rabbitmq
|
||||
|
||||
echo "[4/5] Starting application services"
|
||||
docker compose up -d --no-deps dispatcher worker
|
||||
docker compose up -d --no-deps --wait api1 api2
|
||||
|
||||
echo "[5/5] Recreating mTLS sidecars"
|
||||
docker compose up -d --no-deps --force-recreate \
|
||||
api1-mtls api2-mtls
|
||||
|
||||
echo "PASS: services restarted without removing volumes"
|
||||
Reference in New Issue
Block a user