diff --git a/lib/kamal/configuration.rb b/lib/kamal/configuration.rb index 09f1ed895..56e1e5254 100644 --- a/lib/kamal/configuration.rb +++ b/lib/kamal/configuration.rb @@ -266,7 +266,7 @@ def proxy_image end def proxy_container_name - "kamal-proxy" + proxy.container_name end def proxy_directory diff --git a/lib/kamal/configuration/proxy.rb b/lib/kamal/configuration/proxy.rb index 6232c3e03..929427010 100644 --- a/lib/kamal/configuration/proxy.rb +++ b/lib/kamal/configuration/proxy.rb @@ -55,6 +55,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