feat(docker): add container healthchecks

This commit is contained in:
azurejelly 2025-10-16 10:33:02 -04:00
parent 93c98d9d49
commit 1a0235e41c
No known key found for this signature in database
GPG Key ID: 78C7CB2FBB62D96D
2 changed files with 5 additions and 1 deletions

View File

@ -28,4 +28,7 @@ FROM nginx:stable-alpine
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/build /usr/share/nginx/html
COPY --from=builder /app/build /usr/share/nginx/html
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl --fail --silent --output /dev/null http://localhost || exit 1

View File

@ -1,5 +1,6 @@
server {
listen 80;
listen [::]:80;
server_name vert;
root /usr/share/nginx/html;