diff --git a/Dockerfile b/Dockerfile index 9b59438..e11b216 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,7 +59,7 @@ COPY ./scripts/docker ./scripts/docker EXPOSE 3000 -HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:3000/api/health || exit 1 +HEALTHCHECK --interval=10s --timeout=3s CMD /bin/sh -c '(if [[ "$CADDY_DISABLED" = "true" ]]; then curl -fs http://localhost:${BACKEND_PORT:-8080}/api/health; else curl -fs http://localhost:3000/api/health; fi) || exit 1' ENTRYPOINT ["sh", "./scripts/docker/create-user.sh"] CMD ["sh", "./scripts/docker/entrypoint.sh"] \ No newline at end of file