sbt-docker-compose icon indicating copy to clipboard operation
sbt-docker-compose copied to clipboard

Create docker-compose.yml from plugin

Open mb720 opened this issue 8 years ago • 1 comments

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!

mb720 avatar Jan 10 '17 11:01 mb720

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!

kurtkopchik avatar Jan 11 '17 04:01 kurtkopchik