#2 services, 2 ports on host for each one?
1 messages · Page 1 of 1 (latest)
if you want to expose two services, you need something like https://daggerverse.dev/mod/github.com/kpenfound/dagger-modules/proxy
this can combine two services into one
i think that's what you're asking for
yes, its kind like in a docker compose, 2 services with each one ports
thanks
here the "proxy" is ok for http logic I guess, but what if I want to expose a port from postgresql for example?
mm
you could write a module that combines just plain tcp traffic
but
really you need https://github.com/dagger/dagger/issues/10728
which does not yet exist 😢
@magic panther @dense wadi the proxy module allows proxing TCP traffic as well https://daggerverse.dev/mod/github.com/kpenfound/dagger-modules/proxy@428ffe16f0a2e3c9e4d0d9debf6420db29d3cb64#Proxy.withService. There's an IsTCP argument in the WihtService call
ha nice, thanks !