-
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.
Improve README and docker compose files (#43)
* Split compose file into two * Split `docker-compose.yml` into `compose.yml` and `compose.dev.yml` * Ensure all containers restart * Unmount volumes for base `compose.yml` * Publish backend service ports only for `compose.dev.yml` * Configure backend services to have both "start" and "dev" scripts * Standardise port numbers * Ensure correct dev command * Skip mongo startup messages * README: Improve clarity * Fix typo * Compose: Fix ports * Ensure backend services can communicate * Remove useless networks * Due to the lack of API gateway, all backend services currently need to be exposed directly for now.
- Loading branch information
1 parent
e011fba
commit f906bf1
Showing
10 changed files
with
103 additions
and
37 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
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,21 @@ | ||
services: | ||
frontend: | ||
volumes: | ||
- /app/node_modules | ||
- ./frontend:/app | ||
|
||
question: | ||
command: npm run dev | ||
volumes: | ||
- /app/node_modules | ||
- ./services/question:/app | ||
|
||
question-db: | ||
ports: | ||
- 27017:27017 | ||
|
||
user: | ||
command: npm run dev | ||
volumes: | ||
- /app/node_modules | ||
- ./services/user:/app |
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
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
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