mariotoffia / FluentDocker

Use docker, docker-compose local and remote in tests and your .NET core/full framework apps via a FluentAPI
Apache License 2.0
1.31k stars 97 forks source link

Changing a docker-compose file after it has been loaded #285

Open q-bertsuit opened 1 year ago

q-bertsuit commented 1 year ago

I would like to make changes to a compose file after it has been loaded. Specifically, I would like to change the ports that are exposed by some of the services. Is this possible?

      using (var svc = new Builder()
                        .UseContainer()
                        .UseCompose()
                        .FromFile(file)
                        .RemoveOrphans()
                        .Build().Start())
    // @formatter:on
      {
}
mariotoffia commented 1 year ago

sorry not at the moment. But it is in the roadmap and I'll gladly accepts PR for it! There are several models under the namesapce: Ductus.FluentDocker.Model.Compose that are to be used in the process.

Cheers, Mario :)