diff --git a/Dockerfile b/Dockerfile index 8e7be3b..11d3db2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ EXPOSE 3000 # Healthcheck HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1 + CMD wget -q --spider http://127.0.0.1:3000/health || exit 1 # Starten CMD ["node", "dist/index.js"] diff --git a/docker-compose.yml b/docker-compose.yml index f37077a..09cef89 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: - LOG_LEVEL=info restart: unless-stopped healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] + test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000/health"] interval: 30s timeout: 3s retries: 3