Connecting V2 apps outside Fly

# fly.toml file generated for

app = "<db-app-name>"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[[services]]
  internal_port = 5432 # Postgres instance
  protocol = "tcp"

  # Example of opening port 12500 for insecure connections.
  [[services.ports]]
    handlers = []
    port = 12500


[env]

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

This is the fly.db.toml file and i added the following in it

[[services]]
  internal_port = 5432 # Postgres instance
  protocol = "tcp"

  # Example of opening port 12500 for insecure connections.
  [[services.ports]]
    handlers = []
    port = 12500