-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
52 lines (45 loc) · 1.96 KB
/
Copy path.env.example
File metadata and controls
52 lines (45 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Runtime inference history is owned by api-gateway-service repository persistence.
# Local/demo default uses SQLite. Prisma was removed in MS-13E.
DATABASE_URL=sqlite:///./runtime_inference_history.db
API_GATEWAY_DATABASE_URL=sqlite:///./runtime_inference_history.db
NEXT_PUBLIC_APP_NAME="SentiRank"
ML_SERVICE_URL="http://127.0.0.1:8000"
ML_MODEL_PATH=""
SVM_MODEL_PATH=""
# Sentiment model configuration.
# Do not commit a real HF_TOKEN. Docker Compose mounts saved_models read-only and
# uses the container path /app/models/indobert/run_3_weighted_loss_lr_1e-5.
SENTIMENT_MODEL_SOURCE=auto
INDOBERT_MODEL_PATH="ml-service/saved_models/indobert/run_3_weighted_loss_lr_1e-5"
INDOBERT_MODEL_ID="ahmadzkh/sentirank-indobert-run3"
INDOBERT_MODEL_NAME="run_3_weighted_loss_lr_1e-5"
INDOBERT_MAX_LENGTH=128
HF_TOKEN=""
# Aspect model configuration.
# Docker Compose mounts saved_models read-only and uses /app/models/svm.
ASPECT_MODEL_DIR="ml-service/saved_models/svm"
SVM_ASPECT_MODEL_PATH="ml-service/saved_models/svm/svm_merged_5class_pipeline.joblib"
SVM_ASPECT_MODEL_SOURCE=auto
SVM_ASPECT_MODEL_ID="ahmadzkh/sentirank-svm-aspect-merged-5class"
# MS-03 microservice Docker Compose foundation
FRONTEND_PORT=3000
API_GATEWAY_PORT=8000
REVIEW_SERVICE_PORT=8001
SENTIMENT_SERVICE_PORT=8002
ASPECT_SERVICE_PORT=8003
DECISION_SERVICE_PORT=8004
REPORT_SERVICE_PORT=8005
DATABASE_PORT=5432
POSTGRES_DB=sentirank
POSTGRES_USER=sentirank
POSTGRES_PASSWORD=sentirank
NEXT_PUBLIC_API_BASE_URL=http://localhost:8000
CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
REVIEW_SERVICE_URL=http://review-service:8001
SENTIMENT_SERVICE_URL=http://sentiment-service:8002
ASPECT_SERVICE_URL=http://aspect-service:8003
DECISION_SERVICE_URL=http://decision-service:8004
REPORT_SERVICE_URL=http://report-service:8005
# Optional PostgreSQL mode for Docker/deployment-like runs.
# Requires: docker compose --profile postgres up --build
# API_GATEWAY_DATABASE_URL=postgresql://sentirank:***@database-service:5432/sentirank