-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.example
42 lines (34 loc) · 1.28 KB
/
.env.example
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
# Frontend used domains (NEXTJS needs NEXT_PUBLIC_ prefix, added in docker-compose)
API_GATEWAY_DOMAIN=http://localhost:8000/api
FE_COLLAB_SERVICE_DOMAIN=http://localhost:8007
FE_MATCHING_WEBSOCKET_SERVICE_DOMAIN=http://localhost:8008
FE_CHAT_SERVICE_DOMAIN=http://localhost:8009
# API Gateway
QUESTION_SERVICE_DOMAIN=http://question-app:8001
USER_SERVICE_DOMAIN=http://user-app:8003
COLLAB_SERVICE_DOMAIN=http://collab-app:8007
HISTORY_SERVICE_DOMAIN=http://history-app:8090
# May not need: Not sure how to redirect socket connections
CHAT_SERVICE_DOMAIN=http://chat-app:8009
MATCHING_WEBSOCKET_SERVICE_DOMAIN=http://matching-websocket:8008
# Even if redirect is possible, need "public" URL for sockets
# Question Service
MONGODB_URI=
MONGODB_NAME=
# User Service
JWT_SECRET=you-can-replace-this-with-your-own-secret
DB_CLOUD_URI=
DB_LOCAL_URI=mongodb://user-service-db:27017/peerprepUserServiceDB
PORT=8003
ENV=DEV # or PROD to use cloud URI
# History Service
HISTORY_SERVICE_PORT=8090
HISTORY_SERVICE_MONGODB_URI=
# Kafka Cluster
KAFKA_BROKER_URI=kafka:8005
# Matching Service
MATCHING_SERVICE_CONSUMER_GROUP_ID=matching-service
MATCHING_WEBSOCKET_SERVICE_CONSUMER_GROUP_ID=matching-websocket-service
REDIS_DOMAIN=redis://redis:6379
# Collab Service
COLLAB_SERVICE_CONSUMER_GROUP_ID=collab-service