12 lines
271 B
Python
Executable File
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,
|
|
)
|