#!/bin/sh # Restarts the LB, every API replica and PostgreSQL; the pgdata volume and the schema are kept as is. set -eu cd "$(dirname "$0")/.." docker compose stop lb api # graceful SIGTERM, replicas drain first docker compose restart postgres # same container, same volume docker compose start api lb # migrate is a no-op on an up-to-date schema