Skip to content

Commit 719e057

Browse files
committed
feat(docker, cli): add healthcheck configuration for acontext-server-api service in docker-compose
1 parent 5e041fb commit 719e057

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/client/acontext-cli/internal/docker/docker-compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ services:
169169
CORE_BASE_URL: http://acontext-server-core:8000
170170
ports:
171171
- "${API_EXPORT_PORT:-8029}:8029"
172+
healthcheck:
173+
test: ["CMD-SHELL", "wget -q -O- http://acontext-server-api:8029/health || exit 1"]
174+
interval: 30s
175+
timeout: 5s
176+
retries: 5
172177
depends_on:
173178
- acontext-server-core
174179

src/server/docker-compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ services:
174174
CORE_BASE_URL: http://acontext-server-core:8000
175175
ports:
176176
- "${API_EXPORT_PORT:-8029}:8029"
177+
healthcheck:
178+
test: ["CMD-SHELL", "wget -q -O- http://acontext-server-api:8029/health || exit 1"]
179+
interval: 30s
180+
timeout: 5s
181+
retries: 5
177182
depends_on:
178183
- acontext-server-core
179184

0 commit comments

Comments
 (0)