Files
mtusi2026lab4/scripts/restart.py
2026-11-22 17:26:57 +03:00

12 lines
271 B
Python
Executable File

#!/usr/bin/env python3
import os
import subprocess
from pathlib import Path
root = Path(__file__).resolve().parents[1]
subprocess.run(
["docker", "compose", "--env-file", ".env", "restart", "postgres", "s3", "api1", "api2", "nginx"],
cwd=root,
check=True,
)