aksiksi / compose2nix

Generate a NixOS config from a Docker Compose project.
MIT License
371 stars 4 forks source link

Is it possible to add support for replicas? #62

Open SolidRhino opened 4 days ago

SolidRhino commented 4 days ago

Is it possible to add support for deploy: replicas. So I can run the same container multipole times for traefik?

aksiksi commented 4 days ago

Can you explain how you expect that would work under the hood? Would it just be that the single service maps to N identical containers in the generated Nix config?

To be frank, until now, the Deploy spec has been out of scope since its not really part of the core Compose spec. But if the feature is not complicated and only relies on a single machine (i.e. not Swarm), I am open to considering it.