generators/workspace/index.js
function rewriteDockerCompose(compose) {
  const services = compose.services;
  if (!services) {
    return compose;
  }
  const host = services._host;
  delete services._host;
  Object.keys(services).forEach((k) => {
    if (!isHelperContainer(k)) {
      mergeWith(services[k], host);
    }
  });
  return compose;
}
function rewriteDockerCompose(compose) {
  const services = compose.services;
  if (!services) {
    return compose;
  }
  const host = services._host;
  delete services._host;
  Object.keys(services).forEach((k) => {
    if (!isHelperContainer(k)) {
      mergeWith(services[k], host);
    }
  });
  return compose;
}
function rewriteDockerCompose ( compose ) { const services = compose . services ; if ( ! services ) { return compose ; } const host = services . _host ; delete services . _host ; Object . keys ( services ) . forEach ( ( k ) => { if ( ! isHelperContainer ( k ) ) { mergeWith ( services [ k ] , host ) ; } } ) ; return compose ; }
rewrite the compose by inlining _host to all services not containing a dash, such that both api and celery have the same entry
@param compose
rewrite the compose by inlining _host to all services not containing a dash such that both api and celery have the same entry