fix: pgbouncer healthcheck + minio doctor checks via docker exec
- pgbouncer: replace pg_isready with nc (not available in edoburu/pgbouncer) - minio: add healthcheck in docker-compose.yml - doctor: check minio/pgbouncer via docker exec instead of localhost curl - cmd_dev: wait for healthy services, auto-create minio bucket
This commit is contained in:
@@ -39,6 +39,11 @@ services:
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
|
||||
volumes:
|
||||
- minio_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -sf http://localhost:9000/minio/health/live || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
@@ -63,7 +68,7 @@ services:
|
||||
DEFAULT_POOL_SIZE: 25
|
||||
MIN_POOL_SIZE: 5
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p 6432"]
|
||||
test: ["CMD-SHELL", "sh -c 'echo | nc -w 2 127.0.0.1 6432'"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user