mirror of https://github.com/VERT-sh/VERT.git
feat(docker): add container healthchecks
This commit is contained in:
parent
93c98d9d49
commit
1a0235e41c
|
@ -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
|
|
@ -1,5 +1,6 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name vert;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
|
|
Loading…
Reference in New Issue