Skip to content

Commit

Permalink
chore: add healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Nov 7, 2024
1 parent f7a1b18 commit 8df522f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ COPY ./.docker/entrypoint.sh /

RUN chmod +x /entrypoint.sh

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --spider --quiet http://localhost || exit 1

EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
5 changes: 5 additions & 0 deletions apps/mockup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM docker.io/nginx:stable-alpine

COPY src/ /usr/share/nginx/html/

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --spider --quiet http://localhost || exit 1

EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 8df522f

Please sign in to comment.