Added NODE_ENV=production for backend, frontend and model containers.

This commit is contained in:
K
2025-07-25 11:56:19 +05:30
parent 0722bf5086
commit b1207b1d3a
+4
View File
@@ -21,6 +21,7 @@ services:
- CLOUDINARY_API_SECRET=${CLOUDINARY_API_SECRET} - CLOUDINARY_API_SECRET=${CLOUDINARY_API_SECRET}
- GEMINI_API_KEY=${GEMINI_API_KEY} - GEMINI_API_KEY=${GEMINI_API_KEY}
- REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET} - REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}
- NODE_ENV=production
networks: networks:
- cropcompass-ntwk - cropcompass-ntwk
depends_on: depends_on:
@@ -35,6 +36,8 @@ services:
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
user: "nonroot:nonroot" user: "nonroot:nonroot"
environment:
- NODE_ENV=production
ports: ports:
- "3000:3000" # Do not change this unless you have modified it in the Docker image and rebuilt it. - "3000:3000" # Do not change this unless you have modified it in the Docker image and rebuilt it.
networks: networks:
@@ -69,6 +72,7 @@ services:
- "8081:8081" - "8081:8081"
environment: environment:
- FRONTEND_URI=http://localhost:3000 - FRONTEND_URI=http://localhost:3000
- NODE_ENV=production
networks: networks:
- cropcompass-ntwk - cropcompass-ntwk
depends_on: depends_on: