fix(service): twenty fails to deploy due to dependency unhealthy
This commit is contained in:
parent
3a8f52ce16
commit
e18ac5a7e8
1 changed files with 10 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ services:
|
||||||
interval: 2s
|
interval: 2s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
start_period: 10s
|
start_period: 30s
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
@ -102,7 +102,15 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
twenty:
|
twenty:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD-SHELL
|
||||||
|
- "ps aux | grep 'dist/queue-worker/queue-worker' | grep -v grep || exit 1"
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 30s
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue