Skip to content

Commit 8df522f

Browse files
committed
chore: add healthchecks
1 parent f7a1b18 commit 8df522f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

apps/frontend/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ COPY ./.docker/entrypoint.sh /
66

77
RUN chmod +x /entrypoint.sh
88

9+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
10+
CMD wget --spider --quiet http://localhost || exit 1
11+
912
EXPOSE 80
1013
ENTRYPOINT ["/entrypoint.sh"]
1114
CMD ["nginx", "-g", "daemon off;"]

apps/mockup/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
FROM docker.io/nginx:stable-alpine
2+
23
COPY src/ /usr/share/nginx/html/
4+
5+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
6+
CMD wget --spider --quiet http://localhost || exit 1
7+
38
EXPOSE 80
49
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)