From b1207b1d3a92166ff9d71ed25a4805f91757b156 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Fri, 25 Jul 2025 11:56:19 +0530 Subject: [PATCH] Added NODE_ENV=production for backend, frontend and model containers. --- docker-compose.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 8416328..75cc6af 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -21,6 +21,7 @@ services: - CLOUDINARY_API_SECRET=${CLOUDINARY_API_SECRET} - GEMINI_API_KEY=${GEMINI_API_KEY} - REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET} + - NODE_ENV=production networks: - cropcompass-ntwk depends_on: @@ -35,6 +36,8 @@ services: security_opt: - no-new-privileges:true user: "nonroot:nonroot" + environment: + - NODE_ENV=production ports: - "3000:3000" # Do not change this unless you have modified it in the Docker image and rebuilt it. networks: @@ -69,6 +72,7 @@ services: - "8081:8081" environment: - FRONTEND_URI=http://localhost:3000 + - NODE_ENV=production networks: - cropcompass-ntwk depends_on: