From 88fed4cb7ff9651ce202fb61231466549bffd8b0 Mon Sep 17 00:00:00 2001 From: Viktor Date: Fri, 16 Dec 2016 16:35:34 -0800 Subject: [PATCH] Wildcard domain support. Fixes 87. [ci skip] --- articles/swarm-mode-listener.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/articles/swarm-mode-listener.md b/articles/swarm-mode-listener.md index 893c0a83..1516822c 100644 --- a/articles/swarm-mode-listener.md +++ b/articles/swarm-mode-listener.md @@ -198,6 +198,16 @@ Multiple domains should be separated with comma (`,`). ... ``` +Domains can be prefixed with a wildcard. + +```bash +... + --label com.df.serviceDomain=*domain.com \ +... +``` + +The above example would match any domain ending with `domain.com` (e.g. `my-domain.com`, `my-other-domain.com`, etc). + ### Removing a Service From the Proxy Since `Swarm Listener` is monitoring docker services, if a service is removed, related entries in the proxy configuration will be removed as well.