diff --git a/lib/kamal/configuration.rb b/lib/kamal/configuration.rb index 2848a3650..607a428d6 100644 --- a/lib/kamal/configuration.rb +++ b/lib/kamal/configuration.rb @@ -255,7 +255,7 @@ def proxy_image end def proxy_container_name - "kamal-proxy" + proxy.container_name end diff --git a/lib/kamal/configuration/proxy.rb b/lib/kamal/configuration/proxy.rb index af09e2c7c..775bfc423 100644 --- a/lib/kamal/configuration/proxy.rb +++ b/lib/kamal/configuration/proxy.rb @@ -59,6 +59,10 @@ def merge(other) self.class.new config: config, proxy_config: proxy_config.deep_merge(other.proxy_config) end + def container_name + CONTAINER_NAME + end + private def seconds_duration(value) value ? "#{value}s" : nil