diff --git a/docker-compose.yml b/docker-compose.yml index eaeee02..8d20c73 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: environment: - APP_PORT=3005 healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3005/health"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://0.0.0.0:3005/health"] interval: 30s timeout: 3s retries: 3 diff --git a/docker/Dockerfile.backend b/docker/Dockerfile.backend index 2cb1a18..5ed17f4 100644 --- a/docker/Dockerfile.backend +++ b/docker/Dockerfile.backend @@ -18,6 +18,6 @@ ENV APP_PORT=3005 EXPOSE 3005 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3005/health || exit 1 + CMD wget --no-verbose --tries=1 --spider http://0.0.0.0:3005/health || exit 1 CMD ["node", "server/index.js"] \ No newline at end of file