This commit is contained in:
Björn Ellensohn 2023-09-13 10:58:32 +02:00
parent 624360c89f
commit d966e1e84f

View File

@ -10,12 +10,12 @@ stack3 = stack1 + ["amcl", "navigation"]
# Function to start a stack
def start_stack(stack):
print(f"Starting {', '.join(stack)}...")
subprocess.run(["docker-compose", "up", "-d"] + stack)
subprocess.run(["docker", "compose", "up", "-d"] + stack)
# Function to stop a stack
def stop_stack(stack):
print(f"Stopping {', '.join(stack)}...")
subprocess.run(["docker-compose", "down", "-v", "--remove-orphans"] + stack)
subprocess.run(["docker", "compose", "down", "-v", "--remove-orphans"] + stack)
# Main program
if __name__ == "__main__":