Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.77k stars 197 forks source link

docker-compose file version #1

Closed yucer closed 5 years ago

yucer commented 7 years ago

This is a very useful tool.

Are there any plans to provide an option for the Compose File version ?

They have more versions now:

Red5d commented 7 years ago

Yes, adding support for the updated compose file versions is definitely something I'd like to add when I have the time. Pull requests for implementing these are certainly welcome though :)

edif30 commented 6 years ago

so how do you know which version this tool will put the compose file in?

Red5d commented 6 years ago

Right now it uses version 1. I'll see about adding support for v2/3 soon.

edasque commented 5 years ago

Any update on generating v3 versions?

Red5d commented 5 years ago

I've now updated the tool so it generates compose file v3 output by default. You can change it to v1 by giving the "-v 1" option before the container name/id(s).