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 # Required - Main port of frontend
ENV=dev
# Main port of frontend
CLIENT_PORT=3000 CLIENT_PORT=3000
# Main port of backend # Required - Main port of backend - Proxy port
KONG_PROXY_PORT=9800 KONG_PROXY_PORT=9800
# Frontend URL # Required - Internal port of backend
CLIENT_BASE_URL=http://localhost:3000 PORT=8080
# Port number # Required - Frontend URL
MONGO_EXPOSE_PORT=27019 CLIENT_BASE_URL=http://localhost:3000
KONG_ADMIN_PORT=9851 # 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 MONGODB_URL=mongodb://playground-db:27017/playground-be
# Required - Internal port of upload
UPLOAD_PORT=9810 UPLOAD_PORT=9810
# Volume path to store uploaded files # Required - Volume path to store uploaded files
UPLOAD_PATH=/opt/data/playground/upload UPLOAD_PATH=/opt/data/playground/upload
# Upload domain # Required - Domain for uploaded files service
UPLOAD_DOMAIN=http://your_backend_domain/v2/file/ UPLOAD_DOMAIN=http://localhost:9800/v2/file/
# JWT secret key # Required - JWT secret key
JWT_SECRET=your_very_secure_secret_key JWT_SECRET=your-very-secure-secret-key
# Required - Access token expiration times
JWT_ACCESS_EXPIRATION_MINUTES=1440 JWT_ACCESS_EXPIRATION_MINUTES=1440
# Required - Refresh token expiration times
JWT_REFRESH_EXPIRATION_DAYS=30 JWT_REFRESH_EXPIRATION_DAYS=30
# Required - Reset password token expiration times
JWT_RESET_PASSWORD_EXPIRATION_MINUTES=10 JWT_RESET_PASSWORD_EXPIRATION_MINUTES=10
# Required - Verify email token expiration times
JWT_VERIFY_EMAIL_EXPIRATION_MINUTES=10 JWT_VERIFY_EMAIL_EXPIRATION_MINUTES=10
# Cookie settings # Required - Cookie name for refresh token
JWT_COOKIE_NAME=playground-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 CACHE_BASE_URL=https://cache.digitalauto.tech
LOG_BASE_URL=https://logs.digitalauto.tech # Optional - Log base URL for logging
LOG_BASE_URL=https://logs.digitalauto.tech
BREVO_API_KEY=your_brevo_api_key \ No newline at end of file
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
...@@ -13,7 +13,7 @@ All services run entirely within Docker containers. ...@@ -13,7 +13,7 @@ All services run entirely within Docker containers.
![Architecture](https://bewebstudio.digitalauto.tech/data/projects/nTcRsgxcDWgr/instance_setup/Architecture.jpg) ![Architecture](https://bewebstudio.digitalauto.tech/data/projects/nTcRsgxcDWgr/instance_setup/Architecture.jpg)
## Installation ## Running the application
### Using Docker ### Using Docker
......
services: services:
playground-fe: playground-fe:
container_name: playground-fe container_name: playground-fe
image: boschvn/playground-fe image: boschvn/playground-fe:latest
ports: ports:
- "${CLIENT_PORT:-3000}:80" - "${CLIENT_PORT:-3000}:80"
volumes: volumes:
...@@ -32,7 +32,7 @@ services: ...@@ -32,7 +32,7 @@ services:
playground-be: playground-be:
platform: linux/amd64 platform: linux/amd64
container_name: playground-be container_name: playground-be
image: boschvn/playground-be:fdc937c image: boschvn/playground-be:latest
env_file: env_file:
- .env - .env
depends_on: depends_on:
...@@ -55,7 +55,7 @@ services: ...@@ -55,7 +55,7 @@ services:
upload: upload:
platform: linux/amd64 platform: linux/amd64
container_name: playground-upload container_name: playground-upload
image: boschvn/upload:1b88570 image: boschvn/upload:latest
env_file: env_file:
- .env - .env
volumes: 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