#!/bin/sh # Restart API replicas and the stores they use. Volumes stay. OpenBao is left running # so it does not need another unseal; API logs in again with the AppRole files. set -eu ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) cd "$ROOT" if [ -f .env ]; then docker compose --env-file .env restart postgres redis seaweed s3 rabbitmq api worker # The mTLS sidecar shares rabbitmq's network namespace and must rejoin after it restarts. docker compose --env-file .env restart rabbit-mtls else docker compose restart postgres redis seaweed s3 rabbitmq api worker docker compose restart rabbit-mtls fi