Traefik hosts can now be more than just web

This commit is contained in:
David Heinemeier Hansson
2023-01-20 13:38:57 +01:00
parent 2cb09be0cd
commit 8a32cc9c84
4 changed files with 21 additions and 9 deletions

View File

@@ -31,6 +31,10 @@ class Mrsk::Configuration::Role
specializations["cmd"]
end
def running_traefik?
name.web? || specializations["traefik"]
end
private
attr_accessor :config
@@ -61,10 +65,6 @@ class Mrsk::Configuration::Role
end
end
def running_traefik?
name.web? || specializations["traefik"]
end
def custom_labels
Hash.new.tap do |labels|
labels.merge!(config.labels) if config.labels.present?