Update Docker configuration for better backend service discovery

هذا الالتزام موجود في:
2025-10-29 16:10:16 +03:00
الأصل 8e156fcbd4
التزام 2f14c0b602
2 ملفات معدلة مع 3 إضافات و3 حذوفات

عرض الملف

@@ -7,6 +7,6 @@ RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/templates/nginx.conf.template
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["/docker-entrypoint.sh", "nginx", "-g", "daemon off;"]

عرض الملف

@@ -37,7 +37,7 @@ http {
# Proxy API requests to the backend server
location /api/ {
proxy_pass http://backend:3001/;
proxy_pass http://${BACKEND_HOST:-backend}:${BACKEND_PORT:-3001}/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';