Skip to content

Commit 092563d

Browse files
Merge pull request #200 from DefangLabs/jordan/slim-healthchecks
Slim healthchecks
2 parents 536e85d + 364c79c commit 092563d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/Dockerfile

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

4+
RUN apt-get update && apt-get install -y curl
5+
46
# Set the working directory
57
WORKDIR /app
68

compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ services:
1919
# resources:
2020
# reservations:
2121
# memory: 256M
22+
healthcheck:
23+
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
2224

2325
mongo:
2426
restart: unless-stopped

0 commit comments

Comments
 (0)