generated from DefangSamples/sample-RAG-chatbot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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:
- 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
- notice all the empty lines in the answer above, we shouldn't have all that whitespace
- 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
Labels
No labels