-
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.
Merge pull request #236 from boostcampwm-2022/feat/docker
- Loading branch information
Showing
7 changed files
with
102 additions
and
2 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,45 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "client build", | ||
"command": "npm", | ||
"args": ["start"], | ||
"options": { | ||
"cwd": "${workspaceFolder}/client" | ||
}, | ||
"presentation": { "group": "runwithme" } | ||
}, | ||
{ | ||
"label": "api-server build", | ||
"command": "npm", | ||
"args": ["run", "start:dev"], | ||
"options": { | ||
"cwd": "${workspaceFolder}/server" | ||
}, | ||
"presentation": { "group": "runwithme" } | ||
}, | ||
{ | ||
"label": "noti-server build", | ||
"command": "npm", | ||
"args": ["run", "start:dev"], | ||
"options": { | ||
"cwd": "${workspaceFolder}/noti-server" | ||
}, | ||
"presentation": { "group": "runwithme" } | ||
}, | ||
{ | ||
"label": "chat-server build", | ||
"command": "npm", | ||
"args": ["run", "start:dev"], | ||
"options": { | ||
"cwd": "${workspaceFolder}/chat-server" | ||
}, | ||
"presentation": { "group": "runwithme" } | ||
}, | ||
{ | ||
"label": "Total build", | ||
"dependsOn": ["api-server build", "noti-server build", "chat-server build"] | ||
} | ||
] | ||
} |
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,11 @@ | ||
FROM node:latest | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install --silent | ||
|
||
COPY . . | ||
|
||
EXPOSE 27017 |
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 @@ | ||
services: | ||
chat-server: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: chat-server | ||
ports: | ||
- '8080:8080' | ||
command: npm run start | ||
networks: | ||
- webnet | ||
depends_on: | ||
- mongodb_chat | ||
environment: | ||
- MONGO_URL=mongodb://mongodb_chat:27017/chat | ||
|
||
mongodb_chat: | ||
container_name: mongodb_chat | ||
command: mongod --quiet --logpath /dev/null | ||
image: mongo | ||
volumes: | ||
- ./data:/data/db | ||
networks: | ||
- webnet | ||
logging: | ||
driver: 'none' | ||
|
||
networks: | ||
webnet: | ||
volumes: | ||
chat-server: |
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