Trying to write a utility to consume a docker-compose file, and inject as dagger service bindings.... but I can't see how to map a port?
I can expose a port, like this...
// Database service used for application tests
database := client.Container().From("postgres:15.2").
WithEnvVariable("POSTGRES_PASSWORD", "test").
WithExec([]string{"postgres"}).
WithExposedPort(5432)
But how can I map this port, like I do in a docker compose file?
I was hoping for something like this...
// Database service used for application tests
database := client.Container().From("postgres:15.2").
WithEnvVariable("POSTGRES_PASSWORD", "test").
WithExec([]string{"postgres"}).
WithExposedPort("<MY_PORT>:5432")
