fix: add --remove-orphans to main compose up command

prevents container name conflicts when switching profiles by cleaning
up orphaned containers from deactivated services
This commit is contained in:
Yury Kossakovsky
2025-12-09 18:45:47 -07:00
parent 2e81c991e2
commit ef68937d4b

View File

@@ -237,8 +237,9 @@ def start_local_ai():
run_command(build_cmd)
# Now, start the services using the newly built images. No --build needed as we just built.
# Use --remove-orphans to clean up containers from profiles that are no longer active
print("Starting containers...")
up_cmd = ["docker", "compose"] + compose_files + ["up", "-d"]
up_cmd = ["docker", "compose"] + compose_files + ["up", "-d", "--remove-orphans"]
run_command(up_cmd)
def generate_searxng_secret_key():