Custom Private Networks with a database

Hello!

I have created an app on a custom private network like so

fly apps create my-app --network my-app-network

I am looking to create a postgres database on this network, I have tried both mpg and postgres from the fly cli but it does not look like I can configure either to use the private network. Are there any options here besides creating and managing postgres as a generic app?

Appreciate any thoughts on this,

Tyler

Hi… The following older thread has a workaround using Flycast:

https://community.fly.io/t/create-postgres-cluster-in-a-custom-network/23669

(One of Flycast’s less well known features is that it can be made to bridge networks.)

Overall, though, I think a generic app would be better. The fly pg commands themselves are slated to be removed eventually. (That was true last I heard, anyway.)

Hope this helps!

1 Like

Thanks for the thoughts and apologies for not finding that OG thread up front!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.