fix: frontend healthcheck use 127.0.0.1 and bind to 0.0.0.0

This commit is contained in:
2026-07-18 17:29:47 +02:00
parent 1a4444e1e8
commit abbb99fe74
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -61,6 +61,8 @@ services:
environment:
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:8000/api/v1}
- NODE_ENV=production
- HOSTNAME=0.0.0.0
- PORT=3000
depends_on:
backend:
condition: service_healthy
+1 -1
View File
@@ -41,6 +41,6 @@ EXPOSE 3000
# Health check
HEALTHCHECK --interval=30s --timeout=5s --retries=3 --start-period=10s \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/ || exit 1
CMD ["node", "server.js"]