-
Notifications
You must be signed in to change notification settings - Fork 0
Docker branch #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SaranHiruthikM
wants to merge
9
commits into
main
Choose a base branch
from
docker-branch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6cbe160
syntax error in PORT variable declaration
SaranHiruthikM 013979b
created Dockerfile for the project
SaranHiruthikM 2217103
Created docker-compose.yaml for two services: backend/nodejs and mongodb
SaranHiruthikM b2c81e9
Updated docker-compose.yaml
SaranHiruthikM 1a2093f
Update Dockerfile
SaranHiruthikM 9d2b0ca
Create .dockerignore
SaranHiruthikM 1b02c60
all necessary changes done to docker-compose.yaml
SaranHiruthikM 1ef1ead
all necessary changes done to Dockerfile
SaranHiruthikM 3dc8b9e
Update docker-compose.yaml
SaranHiruthikM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,13 @@ | ||
| FROM node:18-alpine | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY package*.json ./ | ||
|
SaranHiruthikM marked this conversation as resolved.
Outdated
|
||
|
|
||
| RUN npm install | ||
|
|
||
| COPY . . | ||
|
|
||
| EXPOSE 8080 | ||
|
|
||
| CMD ["node", "server.js"] | ||
This file contains hidden or 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,28 @@ | ||
| version: '3.8' | ||
|
SaranHiruthikM marked this conversation as resolved.
Outdated
|
||
|
|
||
| services: | ||
| backend: | ||
|
SaranHiruthikM marked this conversation as resolved.
|
||
| build: . | ||
| container_name: healoscope-backend | ||
| ports: | ||
| - "8080:8080" | ||
| environment: | ||
| - PORT=8080 | ||
| - MONGO_URI=mongodb://mongo:27017/healoscope | ||
|
SaranHiruthikM marked this conversation as resolved.
Outdated
|
||
| depends_on: | ||
|
SaranHiruthikM marked this conversation as resolved.
|
||
| - mongo | ||
| volumes: | ||
| - .:/app | ||
|
SaranHiruthikM marked this conversation as resolved.
Outdated
|
||
| restart: unless-stopped | ||
|
|
||
| mongo: | ||
| image: mongo | ||
| container_name: healoscope-mongo | ||
| ports: | ||
| - "27017:27017" | ||
| volumes: | ||
| - mongo_data:/data/db | ||
| restart: unless-stopped | ||
|
|
||
| volumes: | ||
| mongo_data: | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.