-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from brendantwh/main
Add env config to Docker setup
- Loading branch information
Showing
5 changed files
with
103 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# URLs - change these to your local or cloud deployment IP address/URL if necessary | ||
PUBLIC_URL=http://localhost | ||
WS_PUBLIC_URL=ws://localhost | ||
|
||
# Port numbers - change these if you are already using these ports for other (non-PeerPrep) services | ||
FRONTEND_PORT=3000 | ||
QUESTION_API_PORT=2000 | ||
USER_API_PORT=3001 | ||
MATCHING_API_PORT=3002 | ||
COLLAB_API_PORT=3003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
PUBLIC_URL=http://localhost | ||
WS_PUBLIC_URL=ws://localhost | ||
# PUBLIC_URL=http://localhost | ||
# WS_PUBLIC_URL=ws://localhost | ||
|
||
# Frontend servce | ||
FRONTEND_PORT=3000 | ||
NEXT_PUBLIC_FRONTEND_URL=$PUBLIC_URL:$FRONTEND_PORT | ||
# # Frontend servce | ||
# FRONTEND_PORT=3000 | ||
# NEXT_PUBLIC_FRONTEND_URL=$PUBLIC_URL:$FRONTEND_PORT | ||
|
||
# Question service | ||
QUESTION_API_PORT=2000 | ||
NEXT_PUBLIC_QUESTION_API_BASE_URL=$PUBLIC_URL:$QUESTION_API_PORT/questions | ||
# # Question service | ||
# QUESTION_API_PORT=2000 | ||
# NEXT_PUBLIC_QUESTION_API_BASE_URL=$PUBLIC_URL:$QUESTION_API_PORT/questions | ||
|
||
# User service | ||
USER_API_PORT=3001 | ||
USER_API_BASE_URL=$PUBLIC_URL:$USER_API_PORT | ||
NEXT_PUBLIC_USER_API_AUTH_URL=$USER_API_BASE_URL/auth | ||
NEXT_PUBLIC_USER_API_USERS_URL=$USER_API_BASE_URL/users | ||
NEXT_PUBLIC_USER_API_EMAIL_URL=$USER_API_BASE_URL/email | ||
NEXT_PUBLIC_USER_API_HISTORY_URL=$USER_API_BASE_URL/users/history | ||
# # User service | ||
# USER_API_PORT=3001 | ||
# USER_API_BASE_URL=$PUBLIC_URL:$USER_API_PORT | ||
# NEXT_PUBLIC_USER_API_AUTH_URL=$USER_API_BASE_URL/auth | ||
# NEXT_PUBLIC_USER_API_USERS_URL=$USER_API_BASE_URL/users | ||
# NEXT_PUBLIC_USER_API_EMAIL_URL=$USER_API_BASE_URL/email | ||
# NEXT_PUBLIC_USER_API_HISTORY_URL=$USER_API_BASE_URL/users/history | ||
|
||
# Matching service | ||
MATCHING_API_PORT=3002 | ||
NEXT_PUBLIC_MATCHING_API_URL=$PUBLIC_URL:$MATCHING_API_PORT/matching | ||
# # Matching service | ||
# MATCHING_API_PORT=3002 | ||
# NEXT_PUBLIC_MATCHING_API_URL=$PUBLIC_URL:$MATCHING_API_PORT/matching | ||
|
||
# Collab service | ||
COLLAB_API_PORT=3003 | ||
NEXT_PUBLIC_COLLAB_API_URL=$WS_PUBLIC_URL:$COLLAB_API_PORT | ||
# # Collab service | ||
# COLLAB_API_PORT=3003 | ||
# NEXT_PUBLIC_COLLAB_API_URL=$WS_PUBLIC_URL:$COLLAB_API_PORT | ||
|
||
NEXT_PUBLIC_EMAIL_USER=[email protected] | ||
NEXT_PUBLIC_EMAIL_PASS=peerprepg44 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters