Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cloud_Computing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Tim Hobelsberger
Cloud_Computing
Commits
552ae0a9
Commit
552ae0a9
authored
2 years ago
by
Alexander Tim Hobelsberger
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile, docker-compose
parent
40c13d17
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+2
-0
2 additions, 0 deletions
.dockerignore
Dockerfile
+16
-0
16 additions, 0 deletions
Dockerfile
docker-compose.yaml
+19
-0
19 additions, 0 deletions
docker-compose.yaml
with
37 additions
and
0 deletions
.dockerignore
0 → 100644
+
2
−
0
View file @
552ae0a9
node_modules
npm-debug.log
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
16
−
0
View file @
552ae0a9
#Get Node Image
FROM
node:16
#Create app directory - this will be the working directory
WORKDIR
/usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY
["package.json", "package-lock.json*", "./"]
RUN
npm
install
# Bundle app source code inside the Docker Image
COPY
. .
EXPOSE
3000
CMD
[ "npm", "start" ]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yaml
0 → 100644
+
19
−
0
View file @
552ae0a9
version
:
'
3'
services
:
mongo
:
image
:
mongo
ports
:
-
27017:27017
volumes
:
-
mongodb:/data/db
node
:
restart
:
always
build
:
.
ports
:
-
3000:3000
volumes
:
-
./:/code
volumes
:
mongodb
:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment