I am becoming very frustrated by this. I created an instance of my database, and I am able to connect to it with fly mpg connect. however, the connection strings that it gives me refuses to connect anywhere, either with DBeaver, or pgweb, or any of my applications. Does it only work with applications deployed to fly?
Just this, over and over:
pgweb | Connecting to server...
pgweb | Error: dial tcp: lookup direct.9g6xxxxxxxv5mld.flympg.net on 127.0.0.11:53: no such host
pgweb | Pgweb v0.16.2 (git: e63945ee7182435a729f22a4203e2f15d00f6350) (go: go1.22.8) (build time: 2024-11-02T16:23:09Z)
Hey! Your apps in the same organization should just work to connect to Managed Postgres instances.
If you need it locally, you can run fly mpg connect (I see you found that one). You can run `fly mpg proxy to just make it available over a local port.
Are you running the app in a different org or just locally?
Here is an example app that will let you setup a proxy that you can give public networking and connect without wireguard or running your entire app inside Fly.io.