-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed users docs and added build folder
- Loading branch information
1 parent
7b84abf
commit 7e52826
Showing
3 changed files
with
108 additions
and
5 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,31 @@ | ||
.PHONY: start start-api start-problems start-users forward-problems forward-users | ||
|
||
start: | ||
@echo "Starting local dev server..." | ||
@echo "UI: http://localhost:8080" | ||
@echo "API: http://localhost:3000" | ||
@docker-compose up | ||
|
||
start-api: | ||
@echo "Starting local dev server without UI..." | ||
@echo "API: http://localhost:3000" | ||
@docker-compose up --scale wisp-ui=0 | ||
|
||
start-problems: | ||
@echo "Starting local problems server..." | ||
@echo "Problems API: http://localhost:3001" | ||
@docker-compose up --scale wisp-ui=0 --scale wisp-gateway=0 --scale wisp-users=0 | ||
|
||
start-users: | ||
@echo "Starting local problems server..." | ||
@echo "Problems API: http://localhost:3001" | ||
@echo "Users API: http://localhost:3002" | ||
@docker-compose up --scale wisp-ui=0 --scale wisp-gateway=0 | ||
|
||
forward-problems: | ||
@echo "Forwarding port 3001 to problems microservice..." | ||
@kubectl port-forward -n prod deploy/wisp-problems 3001:3000 | ||
|
||
forward-users: | ||
@echo "Forwarding port 3002 to users microservice..." | ||
@kubectl port-forward -n prod deploy/wisp-users 3002:3000 |
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,48 @@ | ||
version: "3" | ||
services: | ||
mongo: | ||
container_name: mongo | ||
image: mongo | ||
logging: | ||
driver: none | ||
wisp-problems: | ||
image: competemcgill/wisp-problems:latest | ||
container_name: wisp-problems | ||
environment: | ||
- NODE_ENV=dev | ||
- DB_URL=mongodb://mongo:27017 | ||
ports: | ||
- 3001:3000 | ||
links: | ||
- mongo | ||
wisp-users: | ||
image: competemcgill/wisp-users:latest | ||
container_name: wisp-users | ||
environment: | ||
- NODE_ENV=dev | ||
- DB_URL=mongodb://mongo:27017 | ||
- SECRET=Ks10daK3g | ||
- WISP_PROBLEMS_URL=http://wisp-users:3000 | ||
ports: | ||
- 3002:3000 | ||
links: | ||
- mongo | ||
wisp-gateway: | ||
image: competemcgill/e2e-wisp-gateway:latest | ||
container_name: wisp-gateway | ||
ports: | ||
- 3000:80 | ||
links: | ||
- wisp-users | ||
- wisp-problems | ||
wisp-ui: | ||
image: competemcgill/wisp-ui:latest | ||
container_name: wisp-ui | ||
environment: | ||
- VUE_APP_WISP_API_URL=http://localhost:3000 | ||
ports: | ||
- 80:80 | ||
links: | ||
- wisp-gateway | ||
- wisp-users | ||
- wisp-problems |
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