From 85f918a74e111ec34417f44ad508d069c11a2b9d Mon Sep 17 00:00:00 2001
From: tuanh <tuan.hoangdinhanh@vn.bosch.com>
Date: Wed, 5 Mar 2025 18:27:58 +0700
Subject: [PATCH] more clear description for .env.examle and fix some problems
 of docker-compose

---
 .env.example       | 53 ++++++++++++++++++++++------------------------
 README.md          |  2 +-
 docker-compose.yml |  6 +++---
 3 files changed, 29 insertions(+), 32 deletions(-)

diff --git a/.env.example b/.env.example
index 8335f4a..44d6bb9 100644
--- a/.env.example
+++ b/.env.example
@@ -1,44 +1,41 @@
-# Env name
-ENV=dev
-# Main port of frontend
+# Required - Main port of frontend
 CLIENT_PORT=3000
-# Main port of backend
+# Required - Main port of backend - Proxy port
 KONG_PROXY_PORT=9800
-# Frontend URL
-CLIENT_BASE_URL=http://localhost:3000
+# Required - Internal port of backend
+PORT=8080
 
-# Port number
-MONGO_EXPOSE_PORT=27019
-KONG_ADMIN_PORT=9851
+# Required - Frontend URL
+CLIENT_BASE_URL=http://localhost:3000
+# Required - Backend URL
+BACKEND_BASE_URL=http://localhost:9800
 
-# URL of the Mongo DB
+# Required - Mongo URL
 MONGODB_URL=mongodb://playground-db:27017/playground-be
 
+# Required - Internal port of upload
 UPLOAD_PORT=9810
-# Volume path to store uploaded files
+# Required - Volume path to store uploaded files
 UPLOAD_PATH=/opt/data/playground/upload
-# Upload domain
-UPLOAD_DOMAIN=http://your_backend_domain/v2/file/
+# Required - Domain for uploaded files service
+UPLOAD_DOMAIN=http://localhost:9800/v2/file/
 
-# JWT secret key
-JWT_SECRET=your_very_secure_secret_key
+# Required - JWT secret key
+JWT_SECRET=your-very-secure-secret-key
+# Required - Access token expiration times
 JWT_ACCESS_EXPIRATION_MINUTES=1440
+# Required - Refresh token expiration times
 JWT_REFRESH_EXPIRATION_DAYS=30
+# Required - Reset password token expiration times
 JWT_RESET_PASSWORD_EXPIRATION_MINUTES=10
+# Required - Verify email token expiration times
 JWT_VERIFY_EMAIL_EXPIRATION_MINUTES=10
-# Cookie settings
+# Required - Cookie name for refresh token
 JWT_COOKIE_NAME=playground-token
-JWT_COOKIE_DOMAIN=.
+# Required - Cookie domain for refresh token
+JWT_COOKIE_DOMAIN=localhost
 
+# Optional - Cache base URL for storing recently used prototypes
 CACHE_BASE_URL=https://cache.digitalauto.tech
-LOG_BASE_URL=https://logs.digitalauto.tech
-
-BREVO_API_KEY=your_brevo_api_key
-BREVO_BASE_URL=https://api.brevo.com/v3
-
-GITHUB_CLIENT_ID=your_github_client_id
-GITHUB_CLIENT_SECRET=your_github_client_secret
-
-# Certivity
-CERTIVITY_CLIENT_ID=your_certivity_client_id
-CERTIVITY_CLIENT_SECRET=your_certivity_client_secret
\ No newline at end of file
+# Optional - Log base URL for logging
+LOG_BASE_URL=https://logs.digitalauto.tech
\ No newline at end of file
diff --git a/README.md b/README.md
index 36c4eb0..85dc88a 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ All services run entirely within Docker containers.
 
 ![Architecture](https://bewebstudio.digitalauto.tech/data/projects/nTcRsgxcDWgr/instance_setup/Architecture.jpg)
 
-## Installation
+## Running the application
 
 ### Using Docker
 
diff --git a/docker-compose.yml b/docker-compose.yml
index 1b7d4e1..c92825a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,7 +1,7 @@
 services:
   playground-fe:
     container_name: playground-fe
-    image: boschvn/playground-fe
+    image: boschvn/playground-fe:latest
     ports:
       - "${CLIENT_PORT:-3000}:80"
     volumes:
@@ -32,7 +32,7 @@ services:
   playground-be:
     platform: linux/amd64
     container_name: playground-be
-    image: boschvn/playground-be:fdc937c
+    image: boschvn/playground-be:latest
     env_file:
       - .env
     depends_on:
@@ -55,7 +55,7 @@ services:
   upload:
     platform: linux/amd64
     container_name: playground-upload
-    image: boschvn/upload:1b88570
+    image: boschvn/upload:latest
     env_file:
       - .env
     volumes:
-- 
GitLab