init: If a compose file is found in cwd, use it.
@@ -29,6 +29,11 @@ func Init(name string, composeFile string) error {
return err
}
+ if composeFile == "" {
+ if _, err := os.Stat("docker-compose.yml"); err == nil {
+ composeFile = "docker-compose.yml"
+ }
+ }
if composeFile == "" {
return initFromScratch(name)
}
