diff --git a/.env.example b/.env.example index 8335f4a9217f04106aae6e1d62e13120b8db2298..44d6bb9ea0735b38c53d128b1c3d6f814647333c 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 36c4eb0247ac17cef6be0cf9601cfede31e7607a..85dc88a7768f9287f393c7d4d2a8937eaa925ab3 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ All services run entirely within Docker containers.  -## Installation +## Running the application ### Using Docker diff --git a/docker-compose.yml b/docker-compose.yml index 1b7d4e179dfe2406af3acb2e70ea717642f74943..c92825a0b194c46ea48e1917b6e80cfd3ab8cb96 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: