Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

feat(docker): add container healthchecks

azurejelly1a0235e41cd6
diff --git a/Dockerfile b/Dockerfile
index e076900..d995dd8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
\ No newline at end of file
+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
\ No newline at end of file
diff --git a/nginx/default.conf b/nginx/default.conf
index b8f487b..c4feb25 100644
--- a/nginx/default.conf
+++ b/nginx/default.conf
@@ -1,5 +1,6 @@
server {
listen 80;
+ listen [::]:80;
server_name vert;
root /usr/share/nginx/html;