mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-02-24 13:41:21 +01:00
Merge pull request #63 from derhecht/patch-2
Add healthcheck for postgres
This commit is contained in:
commit
6cc091c3e8
@ -317,6 +317,11 @@ services:
|
|||||||
POSTGRES_DB: greenlight
|
POSTGRES_DB: greenlight
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
volumes:
|
volumes:
|
||||||
- ./postgres-data:/var/lib/postgresql/data
|
- ./postgres-data:/var/lib/postgresql/data
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user