Skip to content

Chatbot answer for Postgres needs improvement #13

@acote88

Description

@acote88

Q: how can I use managed postgres?
A:

To use managed Postgres with Defang, follow these steps:



Update your compose.yaml file: Include the x-defang-postgres extension in your service definition to tell Defang to provision a managed Postgres instance. Here’s an example snippet:


database:
  image: postgres:15
  x-defang-postgres: true
  restart: unless-stopped
  ports:
    - mode: host
      target: 5432


Set the required password: Use the command defang config set POSTGRES_PASSWORD to set a password for the database. If this password is not set, the deployment will fail.



Some issues with the answer:

  1. it shows only the database: part of the compose. It doesn't show where POSTGRES_PASSWORD is declared and how it can be used by the service as shown in the docs
  2. notice all the empty lines in the answer above, we shouldn't have all that whitespace
  3. is it possible for the chatbot to provide a link to the source document where it found that info? user could at least check by themselves what the right info is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions