check backend

This commit is contained in:
2026-01-03 00:15:02 +05:30
parent 22ab1cbeb7
commit ceb9bd3f8b
2 changed files with 9 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ RUN cargo build --release --bin void-sentinel
RUN strip target/release/void-sentinel -o /usr/local/bin/void-sentinel
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y ca-certificates tzdata curl && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/bin/void-sentinel /usr/local/bin/void-sentinel

View File

@@ -18,6 +18,12 @@ services:
- IGNORE_RUDE
- API_PORT=8080
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/api/beta_testing" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
web:
build: ./web
@@ -34,5 +40,6 @@ services:
- BOT_API_URL=http://void-sentinel:8080
- NODE_ENV=production
depends_on:
- void-sentinel
void-sentinel:
condition: service_healthy
restart: unless-stopped