Skip to content

Commit b312666

Browse files
committed
fix: vector disconnect on redpanda start
1 parent 1b0495b commit b312666

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

infra/ingest/docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ services:
3636
networks:
3737
- databuddy
3838
healthcheck:
39-
test: [ "CMD", "rpk", "cluster", "health" ]
40-
interval: 30s
39+
test: [ "CMD-SHELL", "rpk cluster health | grep -q 'Healthy:.*true' && rpk topic list" ]
40+
interval: 10s
4141
timeout: 10s
42-
retries: 3
43-
start_period: 40s
42+
retries: 10
43+
start_period: 60s
4444

4545
console:
4646
image: docker.redpanda.com/redpandadata/console:latest
@@ -77,6 +77,7 @@ services:
7777
depends_on:
7878
redpanda:
7979
condition: service_healthy
80+
restart: true
8081
healthcheck:
8182
test: [ "CMD", "vector", "validate", "/etc/vector/vector.yaml" ]
8283
interval: 30s

0 commit comments

Comments
 (0)