Commit ff6826d
authored
Add a readiness_probe for postgresql (#2094)
## Summary
This PR adds the following `readiness_probe` to the `postgresql` plugin:
```yaml
readiness_probe:
exec:
command: "pg_isready"
```
With that change, Devbox users have the ability to create their own
processes that depend on a healthy postgresql service. For example, to
seed a database, one can add the following to a `process-compose.yml`:
```yaml
version: "0.5"
processes:
seed_db:
command: |
npm run db:seed # for example
depends_on:
postgresql:
condition: process_healthy
```
## How was it tested?
In a project with the above `process-compose.yml` file and the changes
in this PR applied to `.devbox/virtenv/postgresql/process-compose.yml`
Signed-off-by: @mootoday <[email protected]>1 parent fac4117 commit ff6826d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments