Skip to content
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Loading