This replacement for nginx-proxy's nginx.tmpl enables the use of container labels instead of relying on environment variables.
services:
my-proxied-service:
labels:
nginx-proxy.hostname: 'host.domain'
nginx-proxy.port: 1234This replacement for nginx-proxy's nginx.tmpl enables the use of container labels instead of relying on environment variables.
services:
my-proxied-service:
labels:
nginx-proxy.hostname: 'host.domain'
nginx-proxy.port: 1234stack-factory was written for Komodo 1.18. Hopefully future releases will render it unnecessary.
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!
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: