Merge pull request #63 from derhecht/patch-2

Add healthcheck for postgres
This commit is contained in:
chandi 2021-02-18 17:05:59 +01:00 committed by GitHub
commit 6cc091c3e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,6 +317,11 @@ services:
POSTGRES_DB: greenlight
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./postgres-data:/var/lib/postgresql/data
{{end}}