Files
mtusi2026lab3/scripts/restart.sh
T

7 lines
255 B
Bash

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
# Keep PostgreSQL named volume and the generated DB credentials unchanged.
# Restart shared DB and both API replicas; restart proxy to refresh backends.
docker compose --env-file .env restart -t 5 db api1 api2 lb