title: Run multiple actix app on different ports
body: <p>I am trying to run two app (one to admin on port 3006 and another to serve data on port 8080).<br>
  They shared database pool, cache...</p>
  
  <p>For actix 1.0 i had this working (i don't know if it's the best way to do that) :</p>
  
  <pre class="lang-rust prettyprint-override"><code>let server = Server::build()
    // FIRST APP
    .bind("", "0.0.0.0:3006", move || {
        HttpService::build().finish({
            App::new()
                .wrap(actix_Logger::new(
                    "WMTS %a %r %s %b %{Referer}i %{User-Agent}i %T",
                ))
                .data(pool.clone())
                .data(cache.clone())
                .service(
                    web::scope("/utils")
                        .route(
                            "one",
                            web::get().to(api::one),
                        )
                        .route("two", web::get().to(api::two))
                )
                .service(
                    web::scope("/data")
                        .route("get_data", web::get().to(api::get_data)),
                )
        })
    })
    .unwrap()
    // SECOND APP
    .bind("", "0.0.0.0:8080", move || {
        HttpService::build().finish(
            App::new()
                .wrap(actix_Logger::new(
                    "API %a %r %s %b %{Referer}i %{User-Agent}i %T",
                ))
                .data(pool.clone())
                .data(cache.clone())
                .service(web::resource("/graphql").route(web::post().to(api::graphql)))
                .service(web::resource("/health").route(web::get().to(api::health)))
                .service(web::resource("/metrics").route(web::get().to(api::metrics))),
        )
    })
    .unwrap();
  
    server.run()?;
  </code></pre>
  
  <p>But how to make it work with actix 2.0 ?</p>