code: func ConvertToAPI(serviceConfig *config.ServiceConfig, ctx project.Context, clientFactory composeclient.Factory) (*ConfigWrapper, error) {
  	config, hostConfig, err := Convert(serviceConfig, ctx, clientFactory)
  	if err != nil {
  		return nil, err
  	}
  
  	result := ConfigWrapper{
  		Config:     config,
  		HostConfig: hostConfig,
  	}
  	return &result, nil
  }
docs: // ConvertToAPI converts a service configuration to a docker API container configuration.