Skip to content

Commit

Permalink
add healthcheck
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Jan 13, 2022
1 parent 9b20bb7 commit 86241d4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docker-compose.e2e.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
version: "3.7"
version: "3.9"
services:
collector:
image: ghcr.io/apache/skywalking-agent-test-tool/mock-collector:5acb890f225ca37ee60675ce3e330545e23e3cbc
ports:
- "19876:19876"
- "12800:12800"
healthcheck:
test: ["CMD", "curl", "http://0.0.0.0:12800/healthCheck"]
interval: 10s
timeout: 5s
retries: 5

consumer:
build:
Expand All @@ -14,7 +19,8 @@ services:
- 8082
command: --mode consumer
depends_on:
- collector
collector:
condition: service_healthy

producer:
build:
Expand All @@ -24,5 +30,7 @@ services:
- "8081:8081"
command: --mode producer
depends_on:
- collector
- consumer
collector:
condition: service_healthy
consumer:
condition: service_started

0 comments on commit 86241d4

Please sign in to comment.