From 8ac3c46136f4e2deb2227d0e0a2b678664d24fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ellensohn?= Date: Wed, 13 Sep 2023 10:40:23 +0200 Subject: [PATCH] update --- robot_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot_config.py b/robot_config.py index 48592bd..71bb189 100644 --- a/robot_config.py +++ b/robot_config.py @@ -11,7 +11,7 @@ def is_service_running(service_name): def start_service(service_name): if not is_service_running(service_name): print(f"Starting {service_name}...") - subprocess.run(["docker-compose", "up", "-d", service_name]) + subprocess.run(["docker", "compose", "up", "-d", service_name]) running_services.append(service_name) else: print(f"{service_name} is already running.") @@ -20,7 +20,7 @@ def start_service(service_name): def stop_service(service_name): if is_service_running(service_name): print(f"Stopping {service_name}...") - subprocess.run(["docker-compose", "down", "-v", "--remove-orphans", service_name]) + subprocess.run(["docker", "compose", "down", "-v", "--remove-orphans", service_name]) running_services.remove(service_name) else: print(f"{service_name} is not running.")