Skip to content

Commit

Permalink
docker healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
smalho01 committed Dec 8, 2023
1 parent fd3ca3d commit 9f1698f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ RUN npm install pm2 -g

EXPOSE 5050
EXPOSE 5051
RUN apk add --no-cache curl

HEALTHCHECK --interval=60s --timeout=10m --retries=10 CMD curl --fail http://localhost:3000 || exit 1

CMD [ "pm2-docker", "pm2.config.js" ]
3 changes: 3 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ RUN npm install pm2 -g

EXPOSE 5050
EXPOSE 5051
RUN apk add --no-cache curl

HEALTHCHECK --interval=60s --timeout=10m --retries=10 CMD (rems-setup % curl --fail http://localhost:5051/doctorOrders/api/getRx && curl --fail http://localhost:5050) || exit 1

CMD ./dockerRunnerDev.sh

0 comments on commit 9f1698f

Please sign in to comment.