Files
mtusi2026lab2/scripts/restart.sh
T
amin 3ed1c4e5b6
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab2
2026-11-13 20:42:10 +03:00

9 lines
375 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
# Перезапуск API и ВСЕХ используемых хранилищ (PostgreSQL, Redis) с сохранением volumes.
# Никаких down -v / flush / повторного seed.
set -eu
cd "$(dirname "$0")/.."
docker compose --env-file .env stop api
docker compose --env-file .env restart postgres redis
docker compose --env-file .env start api