basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
11.64k stars 467 forks source link

Accessories can only publish one port #1093

Open NeilW opened 1 month ago

NeilW commented 1 month ago

Is there a particular reason why there isn't a ports option for accessories that allows the container to publish multiple ports?

ISTM this should be a list of ports and there should be a '--publish' option generated for each one.

tuladhar commented 1 month ago

Typically accessory services only expose one port. But curious, in which case we need to expose multiple ports.

NeilW commented 1 month ago

GlusterFS containers.

https://github.com/gluster/gluster-containers/blob/master/CentOS/Dockerfile

Typically these run on 'net=host' to avoid a long list of port exports. However the 'kamal' network in kamal prevents that option.

sudarshan-dodiya commented 1 month ago

You can pass custom options to accessories as described here.