From 0ee14ddf9947c966a9e5bc88454bcce6b0690230 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Wed, 23 Jul 2025 17:43:37 +0530 Subject: [PATCH] Added a better comment letting know why certain env vars + ports shouldn't be changed. Also modified .env file. --- docker-compose.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 4edc46e..68f3b93 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,9 +7,9 @@ services: - no-new-privileges:true user: "nonroot:nonroot" ports: - - "8000:8000" # Do not change + - "8000:8000" # Do not change this unless you have modified it in the Docker image and rebuilt it. environment: - - FRONTEND_URI=http://localhost:3000 # Do not change + - FRONTEND_URI=http://localhost:3000 # Do not change this unless you have modified it in the Docker image and rebuilt it. - MONGODB_URI=${MONGODB_URI} - SMTP_SERVICE=${SMTP_SERVICE} - SMTP_EMAILADDR=${SMTP_EMAILADDR} @@ -26,7 +26,7 @@ services: depends_on: - database env_file: - - .exampleenv + - .env frontend: container_name: cropcompass-frontend @@ -36,7 +36,7 @@ services: - no-new-privileges:true user: "nonroot:nonroot" ports: - - "3000:3000" # Do not change + - "3000:3000" # Do not change this unless you have modified it in the Docker image and rebuilt it. networks: - cropcompass-ntwk depends_on: @@ -51,13 +51,13 @@ services: environment: - MONGO_INITDB_ROOT_USERNAME=${MONGODB_ROOT_USERNAME} - MONGO_INITDB_ROOT_PASSWORD=${MONGODB_ROOT_PASSWORD} - - MONGO_INITDB_DATABASE=CropCompass # Do not change + - MONGO_INITDB_DATABASE=CropCompass # Do not change this unless you have modified it in the Docker image and rebuilt it. networks: - cropcompass-ntwk volumes: - ./db:/data/db env_file: - - .exampleenv + - .env model: container_name: cropcompass-model