Skip to content

Instantly share code, notes, and snippets.

@nano9g
nano9g / #nginx-proxy-label-based-docker-gen-template.md
Created August 1, 2026 21:08
Label-based template for nginx-proxy/docker-gen

This replacement for nginx-proxy's nginx.tmpl enables the use of container labels instead of relying on environment variables.

Example

services:
  my-proxied-service:
    labels:
      nginx-proxy.hostname: 'host.domain'
 nginx-proxy.port: 1234
@nano9g
nano9g / #stack-factory.md
Last active December 8, 2025 06:52
Komodo Stack Cloning

Disclaimer

stack-factory was written for Komodo 1.18. 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: