#!/bin/sh set -eu cd "$(dirname "$0")/.." if [ -f .env ]; then compose() { docker compose --env-file .env "$@"; } else : "${COMPOSE_PROJECT_NAME:?COMPOSE_PROJECT_NAME is required when .env is absent}" compose() { docker compose "$@"; } fi # Keep named volumes and the one-shot migrator untouched. compose restart --no-deps --timeout 20 postgres redis compose restart --no-deps --timeout 20 api compose restart --no-deps --timeout 20 lb