Skip to content

Commit 790a348

Browse files
committed
fix: docker health check
1 parent 32dd0bc commit 790a348

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.changeset/old-nails-double.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@quassel/frontend": patch
3+
"@quassel/backend": patch
4+
---
5+
6+
Fix docker healthcheck

apps/backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ RUN chown -R node:node .
1919
USER node
2020
EXPOSE 3000
2121
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
22-
CMD curl --fail http://localhost:3000/health || exit 1
22+
CMD curl --head --fail http://localhost:3000/health || exit 1
2323
CMD ["dumb-init", "node", "src/main.js"]

apps/frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY ./.docker/entrypoint.sh /
77
RUN chmod +x /entrypoint.sh
88

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

1212
EXPOSE 80
1313
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)