Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <154029656+mootoday@users.noreply.github.com>
- Loading branch information