Skip to content

Commit f822a8f

Browse files
committed
adjust readme
1 parent 8ad6372 commit f822a8f

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,19 @@ Key Points:
4444
1. **Deploy on Flux**:
4545
- Add a component for PostgreSQL
4646
- Use the official Docker image: `runonflux/flux-pg-cluster:latest`
47-
- Set environment variables for the PostgreSQL:
47+
- USe the following sample to set the environment variables for the PostgreSQL:
4848
```
49-
APP_NAME=your-app-name
50-
POSTGRES_SUPERUSER_PASSWORD=your-super-secret-password
51-
POSTGRES_REPLICATION_PASSWORD=your-replication-password
52-
SSL_ENABLED=true
53-
SSL_PASSPHRASE=your-ssl-passphrase
49+
[
50+
"APP_NAME=your-app-name",
51+
"HOST_POSTGRES_PORT=15432",
52+
"HOST_PATRONI_API_PORT=18008",
53+
"HOST_ETCD_CLIENT_PORT=12379",
54+
"HOST_ETCD_PEER_PORT=12380",
55+
"POSTGRES_SUPERUSER_PASSWORD=your-super-secret-password",
56+
"POSTGRES_REPLICATION_PASSWORD=your-replication-password",
57+
"SSL_ENABLED=true",
58+
"SSL_PASSPHRASE=your-ssl-passphrase"
59+
]
5460
```
5561
- Set Container Data for the component to `/var/lib/postgresql/data`
5662

0 commit comments

Comments
 (0)