From 535ef056fd84991014a090631c77b75baafc05d8 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Wed, 23 Jul 2025 17:25:42 +0530 Subject: [PATCH] Passing refresh token in docker compose + added it in .exampleenv. Also, models container runs as root and depends on frontend. Lastly, changed frontend uri to localhost. --- .exampleenv | 3 +++ docker-compose.yaml | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.exampleenv b/.exampleenv index d5bba0d..3bbd3f6 100644 --- a/.exampleenv +++ b/.exampleenv @@ -17,3 +17,6 @@ CLOUDINARY_API_SECRET=api_secret_here # Gemini GEMINI_API_KEY=gemini_api_here + +# Refresh token +REFRESH_TOKEN_SECRET=a_random_60_or_more_char_secret_here diff --git a/docker-compose.yaml b/docker-compose.yaml index 5280b77..4edc46e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,7 +9,7 @@ services: ports: - "8000:8000" # Do not change environment: - - FRONTEND_URI=http://frontend:3000 # Do not change + - FRONTEND_URI=http://localhost:3000 # Do not change - MONGODB_URI=${MONGODB_URI} - SMTP_SERVICE=${SMTP_SERVICE} - SMTP_EMAILADDR=${SMTP_EMAILADDR} @@ -20,6 +20,7 @@ services: - CLOUDINARY_API_KEY=${CLOUDINARY_API_KEY} - CLOUDINARY_API_SECRET=${CLOUDINARY_API_SECRET} - GEMINI_API_KEY=${GEMINI_API_KEY} + - REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET} networks: - cropcompass-ntwk depends_on: @@ -64,9 +65,10 @@ services: restart: no security_opt: - no-new-privileges:true - user: "nonroot:nonroot" networks: - cropcompass-ntwk + depends_on: + - frontend networks: cropcompass-ntwk: