Skip to content

Commit

Permalink
test: add jaeger health check
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <[email protected]>
  • Loading branch information
artek-koltun committed Oct 31, 2023
1 parent c5d770b commit fdab77c
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,12 @@ services:
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
depends_on:
- leaf1
- redis
- jaeger
leaf1:
condition: service_started
redis:
condition: service_healthy
jaeger:
condition: service_healthy
network_mode: service:leaf1
command: /opi-evpn-bridge -grpc_port=50151 -http_port=8082
healthcheck:
Expand All @@ -220,6 +223,16 @@ services:
environment:
- COLLECTOR_OTLP_ENABLED=true
network_mode: service:leaf1
healthcheck:
test:
[
"CMD-SHELL",
"nc -zv localhost 4317 && nc -zv localhost 4318 || exit 1"
]
interval: 6s
retries: 5
start_period: 20s
timeout: 10s

redis:
image: redis:7.2.2-alpine3.18
Expand Down

0 comments on commit fdab77c

Please sign in to comment.