Use the database in the example app spec
P
Phillip Stromberg
In https://docs.digitalocean.com/products/app-platform/reference/app-spec/ you define a Postgres database called postgres-db, but never reference it anywhere in the services. Is the
databases: - name:
field supposed to be the hostname? Should I put "postgres-db" in my "DB_HOST" environment variable for my app? Should I put "postgres-db:25060" or whatever if the managed database doesn't use the standard port? It doesn't seem to be working with the normal public DNS hostname of my database so I guess it's not that.