mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 22:33:11 +00:00
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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user