Skip to content
Snippets Groups Projects
Commit 85f918a7 authored by Tuan Hoang Dinh Anh's avatar Tuan Hoang Dinh Anh
Browse files

more clear description for .env.examle and fix some problems of docker-compose

parent af38ebab
No related branches found
No related tags found
No related merge requests found
# 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
......@@ -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
......
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment