Fix probod kill because postgres not ready
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -45,10 +45,15 @@ services:
|
|||||||
- "8443:8443"
|
- "8443:8443"
|
||||||
volumes:
|
volumes:
|
||||||
- "probo-data:/data"
|
- "probo-data:/data"
|
||||||
depends_on:
|
networks:
|
||||||
- postgres
|
- postgres
|
||||||
- minio
|
depends_on:
|
||||||
- chrome
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
minio:
|
||||||
|
condition: service_started
|
||||||
|
chrome:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
@@ -66,6 +71,11 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: "postgres"
|
POSTGRES_USER: "postgres"
|
||||||
POSTGRES_PASSWORD: "postgres"
|
POSTGRES_PASSWORD: "postgres"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: "quay.io/minio/minio"
|
image: "quay.io/minio/minio"
|
||||||
|
|||||||
Reference in New Issue
Block a user