code: func (s *Stack) createFileBasedSecrets(secrets corev1.SecretInterface) ([]childResource, error) {
  	var resources []childResource
  	for name, secret := range s.Spec.Secrets {
  		if secret.File == "" {
  			continue
  		}
  
  		fileName := filepath.Base(secret.File)
  		content, err := ioutil.ReadFile(secret.File)
  		if err != nil {
  			return resources, err
  		}
  
  		secret, err := secrets.Create(toSecret(s.Name, name, fileName, content))
  		if err != nil {
  			return resources, err
  		}
  		resources = append(resources, &secretChildResource{client: secrets, secret: secret})
  	}
  	return resources, nil
  }
docs: // createFileBasedSecrets creates a Kubernetes Secret for each Compose global file-based secret.