Health check that delays codex start by 3 seconds

This commit is contained in:
benbierens 2024-03-07 13:56:47 +01:00
parent 632ea9ecf5
commit a7fb036281
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A

View File

@ -42,7 +42,8 @@ services:
volumes:
- ./codex-data:/datadir
depends_on:
- geth
geth:
condition: service_healthy
# Geth init
geth-init:
@ -82,3 +83,8 @@ services:
- ./geth-data:/data
depends_on:
- geth-init
healthcheck:
test: ["CMD", "sleep", "3"]
interval: 3s
timeout: 3s
retries: 1