API, Postgres, Redis и HAProxy остаются базой для вложений: сессии и история уже общие для нескольких реплик.
11 lines
282 B
Bash
Executable File
11 lines
282 B
Bash
Executable File
#!/bin/sh
|
|
# Restart API replicas and every store they use. Volumes are kept.
|
|
set -eu
|
|
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
cd "$ROOT"
|
|
if [ -f .env ]; then
|
|
docker compose --env-file .env restart postgres redis api
|
|
else
|
|
docker compose restart postgres redis api
|
|
fi
|