Tapad / sbt-docker-compose

Integrates Docker Compose functionality into sbt (archived as unmaintained)
BSD 3-Clause "New" or "Revised" License
177 stars 36 forks source link

Create docker-compose.yml from plugin #37

Open mb720 opened 7 years ago

mb720 commented 7 years ago

Hi!

I was wondering if there are plans to support the creation of the docker-compose.yml file using sbt-docker-compose?

This feature could work similarly to the way sbt-docker creates Dockerfiles from the contents of build.sbt.

A simple but very fruitful use case is to conditionally expose ports: If the debug flag in SBT is true, docker-compose.yml contains the port mapping - "5005:5005", otherwise it doesn't.

Thanks a lot for your plugin!

kurtkopchik commented 7 years ago

Hi @mb720, thanks for the feedback and for using the plugin!

Generating the docker-compose.yml file is something that we have considered doing but there are not any solid plans to add this as a feature in the near future. I'd definitely be interested in any PR's with this capability and we will continue to keep it under consideration with future development.

Thanks again!