forked from mtusi2026/mtusi2026lab3
8 lines
368 B
Bash
Executable File
8 lines
368 B
Bash
Executable File
#!/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
|