Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

chore(docker): align compose health checks and startup ordering

Changhoon Sung571f3127f57c
diff --git a/docker-compose.standalone.yml b/docker-compose.standalone.yml
index f1cddba0..e0d294d3 100644
--- a/docker-compose.standalone.yml
+++ b/docker-compose.standalone.yml
@@ -16,6 +16,12 @@ services:
ARANGO_NO_AUTH: "1"
volumes:
- arangodb-data:/var/lib/arangodb3
+ healthcheck:
+ test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8529/_api/version || exit 1"]
+ interval: 5s
+ timeout: 5s
+ start_period: 60s
+ retries: 15
restart: unless-stopped
memory-layer:
@@ -34,7 +40,8 @@ services:
ARANGO_PASSWORD: ""
PORT: "8090"
depends_on:
- - arangodb
+ arangodb:
+ condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8090/v1/health"]
interval: 10s
diff --git a/docker-compose.yml b/docker-compose.yml
index 12f30ba0..cc2b0b14 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -33,7 +33,8 @@ services:
ARANGO_PASSWORD: ""
PORT: "8090"
depends_on:
- - arangodb
+ arangodb:
+ condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8090/v1/health"]