Adding healthcheck to trigger

This commit is contained in:
Alexander G. 2024-10-20 14:24:13 +03:00 committed by GitHub
parent cda2e26223
commit c3c1671b6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,9 +62,10 @@ services:
electric:
condition: service_healthy
healthcheck:
test:
- CMD-SHELL
- pwd
test: "timeout 10s bash -c ':> /dev/tcp/127.0.0.1/3000' || exit 1"
interval: 10s
timeout: 5s
retries: 5
electric:
image: electricsql/electric
restart: always