Skip to content

Commit cbda69e

Browse files
committed
bullmq healthcheck fix
1 parent 891e487 commit cbda69e

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

samples/bullmq-bullboard-redis/api/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Use the slim version of Node.js v20 on Debian Bookworm as the base image
22
FROM node:20-bookworm-slim
33

4+
# Install tools for healthcheck
5+
RUN apt-get update && apt-get install -y \
6+
curl \
7+
&& rm -rf /var/lib/apt/lists/*
8+
49
# Set the working directory
510
WORKDIR /app
611

samples/bullmq-bullboard-redis/board/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Use the slim version of Node.js on Debian Bookworm as the base image
22
FROM node:20-bookworm-slim
33

4+
# Install tools for healthcheck
5+
RUN apt-get update && apt-get install -y \
6+
curl \
7+
&& rm -rf /var/lib/apt/lists/*
8+
49
# Set the working directory
510
WORKDIR /app
611

samples/bullmq-bullboard-redis/compose.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ services:
1212
- REDIS=redis://redisx:6379
1313
- BOARD_PASSWORD
1414
- QUEUE
15+
healthcheck:
16+
test: ["CMD", "curl", "-f", "127.0.0.1:3000"]
1517
depends_on:
1618
- redisx
1719
#deploy:
@@ -31,6 +33,8 @@ services:
3133
environment:
3234
- REDIS=redis://redisx:6379
3335
- QUEUE
36+
healthcheck:
37+
test: ["CMD", "curl", "-f", "127.0.0.1:3001"]
3438
depends_on:
3539
- redisx
3640
#deploy:
@@ -48,8 +52,6 @@ services:
4852
environment:
4953
- REDIS=redis://redisx:6379
5054
- QUEUE
51-
healthcheck:
52-
test: ["CMD", "wget", "-q", "--spider", "127.0.0.1:3000"]
5355
depends_on:
5456
- redisx
5557
#deploy:

0 commit comments

Comments
 (0)