-
Notifications
You must be signed in to change notification settings - Fork 194
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 #493 from andrechristikan/development
docker installation update, file helper update
- Loading branch information
Showing
22 changed files
with
973 additions
and
927 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
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,42 @@ | ||
version: '3.8' | ||
services: | ||
mongo1: | ||
container_name: mongo1 | ||
hostname: mongo1 | ||
image: mongo | ||
restart: always | ||
networks: | ||
- app-network | ||
volumes: | ||
- dbdata1:/data/db | ||
command: mongod --bind_ip_all --replSet rs0 | ||
|
||
mongo2: | ||
container_name: mongo2 | ||
hostname: mongo2 | ||
image: mongo | ||
networks: | ||
- app-network | ||
restart: always | ||
volumes: | ||
- dbdata2:/data/db | ||
command: mongod --bind_ip_all --replSet rs0 | ||
|
||
mongo3: | ||
container_name: mongo3 | ||
hostname: mongo3 | ||
image: mongo | ||
networks: | ||
- app-network | ||
restart: always | ||
volumes: | ||
- dbdata3:/data/db | ||
command: mongod --bind_ip_all --replSet rs0 | ||
networks: | ||
app-network: | ||
name: app-network | ||
driver: bridge | ||
volumes: | ||
dbdata1: | ||
dbdata2: | ||
dbdata3: |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
FROM node:lts-alpine as builder | ||
LABEL maintainer "[email protected]" | ||
|
||
ENV NODE_ENV=test | ||
|
||
WORKDIR /app | ||
COPY package.json yarn.lock ./ | ||
|
||
|
@@ -16,7 +18,6 @@ RUN yarn build | |
FROM node:lts-alpine as main | ||
LABEL maintainer "[email protected]" | ||
|
||
ARG NODE_ENV=production | ||
ENV NODE_ENV=${NODE_ENV} | ||
|
||
WORKDIR /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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
!.gitignore | ||
!README.md | ||
* | ||
swagger.json |
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,6 +1,8 @@ | ||
FROM node:lts-alpine | ||
LABEL maintainer "[email protected]" | ||
|
||
ENV NODE_ENV=${NODE_ENV} | ||
|
||
WORKDIR /app | ||
EXPOSE 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
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 |
---|---|---|
|
@@ -25,16 +25,16 @@ api key secret: `ZLCtDd2rh3TAyVhfAeo3JOPvWfAsTp0Oq6rHl69D` | |
|
||
1. Super Admin | ||
- email: `[email protected]` | ||
- password: `aaAA@@123444` | ||
- password: `aaAA@123` | ||
2. Admin | ||
- email: `[email protected]` | ||
- password: `aaAA@@123444` | ||
- password: `aaAA@123` | ||
3. Member | ||
- email: `[email protected]` | ||
- password: `aaAA@@123444` | ||
- password: `aaAA@123` | ||
4. User | ||
- email: `[email protected]` | ||
- password: `aaAA@@123444` | ||
- password: `aaAA@123` | ||
|
||
<!-- Reference --> | ||
[ref-nestjs]: http://nestjs.com | ||
|
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,11 +1,11 @@ | ||
# Folder Structure | ||
|
||
1. `/app` The final wrapper module | ||
2. `/common` The common module | ||
2. `/common` The common module, or shared module | ||
3. `/configs` The configurations for this project | ||
4. `/health` health check module for every service integrated | ||
5. `/jobs` cron job or schedule task | ||
5. `/jobs` cron job or schedule task. | ||
6. `/language` json languages | ||
7. `/migration` migrate all init data | ||
7. `/migration` migration module. seeding, and rollback. | ||
8. `/modules` other modules based on service based on project | ||
9. `/router` endpoint router. `Controller` will put in this |
Oops, something went wrong.