# Multi tenant applications

**URL:** <https://community.fly.io/t/multi-tenant-applications/375>\
**Category:** General\
**Created:** [November 11, 2020, 3:52pm UTC](https://community.fly.io/t/multi-tenant-applications/375 "2020-11-11T15:52:51Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![thomas](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/thomas/32/40188_2.png) [@thomas](https://community.fly.io/u/thomas)\
**Post date:** [March 10, 2021, 7:37pm UTC](https://community.fly.io/t/multi-tenant-applications/375/21 "2021-03-10T19:37:30Z")

</div>

It’s still on the docket, but I don’t know where it is. The backend for it exists, but I don’t think it’s hooked up to the API yet. It’ll happen!

---

<div class="post-metadata">

**Author:** ![thomas](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/thomas/32/40188_2.png) [@thomas](https://community.fly.io/u/thomas)\
**Post date:** [August 26, 2022, 9:11pm UTC](https://community.fly.io/t/multi-tenant-applications/375/23 "2022-08-26T21:11:41Z")

</div>

You can put an app on a specific network-id (the org your app is on has a default network, but you can create others) with `flyctl apps create --network`.

Apps on their own network won’t be able to talk to apps on other networks. There’s no current bridging you can do from one network to another; our private network enforcement is very simple (which is why we trust it).

---

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [August 26, 2022, 10:42pm UTC](https://community.fly.io/t/multi-tenant-applications/375/24 "2022-08-26T22:42:21Z")

</div>

> [@thomas](#):
>
> You can put an app on a specific network-id (the org your app is on has a default network, but you can create others) with `flyctl apps create --network`.

Wait…what? This is uber neat. When was this feature announced?

---

<div class="post-metadata">

**Author:** ![thomas](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/thomas/32/40188_2.png) [@thomas](https://community.fly.io/u/thomas)\
**Post date:** [August 27, 2022, 12:29am UTC](https://community.fly.io/t/multi-tenant-applications/375/25 "2022-08-27T00:29:08Z")

</div>

I regret that I may have revealed its existence here, because I hate it. But it’s not going away (it’s useful with Fly Machines for large-scale multitenant stuff).

---

<div class="post-metadata">

**Author:** ![CanRau](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/canrau/32/3722_2.png) [@CanRau](https://community.fly.io/u/CanRau)\
**Post date:** [August 27, 2022, 12:30am UTC](https://community.fly.io/t/multi-tenant-applications/375/26 "2022-08-27T00:30:57Z")

</div>

Why do you hate it?

---

<div class="post-metadata">

**Author:** ![yroc](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/yroc/32/16082_2.png) [@yroc](https://community.fly.io/u/yroc)\
**Post date:** [September 4, 2022, 5:10pm UTC](https://community.fly.io/t/multi-tenant-applications/375/27 "2022-09-04T17:10:26Z")

</div>

How can this be done for when you’re creating an app via the machine Rest API?

> [@thomas](#):
>
> You can put an app on a specific network-id (the org your app is on has a default network, but you can create others) with `flyctl apps create --network`.

---

<div class="post-metadata">

**Author:** ![kurt](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kurt/32/43757_2.png) [@kurt](https://community.fly.io/u/kurt)\
**Post date:** [September 4, 2022, 5:20pm UTC](https://community.fly.io/t/multi-tenant-applications/375/28 "2022-09-04T17:20:59Z")

</div>

You can pass a `network` param, there’s an example here: [Running user code on Fly Machines · Fly Docs](https://fly.io/docs/app-guides/functions-with-machines/#create-an-app)

---

<div class="post-metadata">

**Author:** ![PopFlamingo](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/popflamingo/32/3903_2.png) [@PopFlamingo](https://community.fly.io/u/PopFlamingo)\
**Post date:** [September 5, 2022, 3:39am UTC](https://community.fly.io/t/multi-tenant-applications/375/29 "2022-09-05T03:39:39Z")

</div>

Great to learn about custom private networks! Is there a way to limit the data transfer amount of a certain app? I feel like this would be useful for FaaS.

---

<div class="post-metadata">

**Author:** ![mvanlonden](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mvanlonden](https://community.fly.io/u/mvanlonden)\
**Post date:** [September 21, 2022, 3:30am UTC](https://community.fly.io/t/multi-tenant-applications/375/30 "2022-09-21T03:30:50Z")

</div>

How do you specify a specific network ID for a Postgres Cluster? It is not provided as a mutation param in the GraphQL service.

---

<div class="post-metadata">

**Author:** ![mvanlonden](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mvanlonden](https://community.fly.io/u/mvanlonden)\
**Post date:** [September 26, 2022, 1:17am UTC](https://community.fly.io/t/multi-tenant-applications/375/31 "2022-09-26T01:17:26Z")

</div>

I replaced the createPostgresCluster mutation with the createApp mutation followed by the createVolume mutation. This solves my issue.

[Previous page](https://community.fly.io/t/multi-tenant-applications/375.md?page=1)
