Skip to content

Commit 99efec2

Browse files
Merge pull request #200 from DefangLabs/jordan/slim-healthchecks
Slim healthchecks
2 parents 9e6a200 + b88998c commit 99efec2

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 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
# Create app directory
57
WORKDIR /usr/src/app
68

compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ services:
1616
# resources:
1717
# reservations:
1818
# memory: 256M
19+
healthcheck:
20+
test: ["CMD", "curl", "-f", "http://localhost:1337/"]
1921

2022
networks:
2123
app-network:

0 commit comments

Comments
 (0)