mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-21 03:58:24 -07:00
docker: update heath check
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ RUN cargo build --release --locked
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y ca-certificates curl && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && apt-get install -y ca-certificates procps && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN useradd -m -s /bin/bash brk
|
||||
|
||||
|
||||
@@ -32,11 +32,10 @@ services:
|
||||
# - --rpccookiefile
|
||||
# - /bitcoin/.cookie
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-sf", "http://localhost:3110/health"]
|
||||
test: ["CMD", "pgrep", "-x", "brk"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
brk-data:
|
||||
|
||||
Reference in New Issue
Block a user