reworked
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / application (pull_request) Canceled after 0s

This commit is contained in:
2026-11-07 11:56:38 +03:00
parent bd0b33e273
commit 8f1d7e27c7
46 changed files with 2668 additions and 35 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env python3
"""Restart API, PostgreSQL and Redis without removing named volumes."""
from pathlib import Path
import subprocess
import sys
ROOT = Path(__file__).resolve().parents[1]
def main() -> int:
env_file = ROOT / ".env"
cmd = ["docker", "compose"]
if env_file.is_file():
cmd.extend(["--env-file", str(env_file)])
cmd.extend(["restart", "postgres", "redis", "api"])
return subprocess.run(cmd, cwd=ROOT).returncode
if __name__ == "__main__":
sys.exit(main())