#!/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 s3 rabbitmq api worker docker compose --env-file .env restart s3-tls rabbit-mtls else docker compose restart postgres redis s3 rabbitmq api worker docker compose restart s3-tls rabbit-mtls fi