Skip to content

Instantly share code, notes, and snippets.

@nano9g
nano9g / #stack-factory.md
Last active September 4, 2025 15:01
Komodo Stack Cloning

Disclaimer

stack-factory was written for Komodo 1.18.4. Hopefully future releases will render it unnecessary.

Backstory

I'm using Komodo to manage Docker and found myself wanting to deploy a "core" set of stacks running to every server. This turned out to be a bit of a challenge, because each stack in Komodo is tied to a single server. Stacks can be copied, but it’s point-in-time and they can diverge after that. Actions to the rescue!

Setup and usage

The idea behind stack-factory is to find all stacks with a specific tag and duplicate them for each tagged server.

Setup is pretty straightforward: