Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
noSQL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Mariana Molina Reyes
noSQL
Commits
5450eedc
Commit
5450eedc
authored
5 years ago
by
Mariana Molina
Browse files
Options
Downloads
Patches
Plain Diff
Se agregan Dockerfile y docker-compose para el uso de Docker
parent
9c0ff680
Branches
master
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+7
-0
7 additions, 0 deletions
Dockerfile
docker-compose.yml
+14
-0
14 additions, 0 deletions
docker-compose.yml
src/database.js
+1
-1
1 addition, 1 deletion
src/database.js
with
22 additions
and
1 deletion
Dockerfile
0 → 100644
+
7
−
0
View file @
5450eedc
FROM
node:12
WORKDIR
/app
COPY
package*.json /app/
COPY
. /app
RUN
npm
install
EXPOSE
8081
CMD
[ "node", "src/index.js" ]
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
14
−
0
View file @
5450eedc
version
:
"
3"
services
:
nosql
:
restart
:
always
build
:
.
ports
:
-
"
8081:8081"
links
:
-
mongo
mongo
:
container_name
:
mongo
image
:
mongo
ports
:
-
"
27017:27017"
This diff is collapsed.
Click to expand it.
src/database.js
+
1
−
1
View file @
5450eedc
// CONEXIÓN CON MONGODB
// CONEXIÓN CON MONGODB
const
mongo
=
require
(
'
mongodb
'
);
const
mongo
=
require
(
'
mongodb
'
);
// Connection URL
// Connection URL
const
url
=
"
mongodb://
localhost
:27017
"
;
const
url
=
"
mongodb://
mongo
:27017
"
;
// CONEXIÓN CON DYNAMODB
// CONEXIÓN CON DYNAMODB
var
AWS
=
require
(
"
aws-sdk
"
);
var
AWS
=
require
(
"
aws-sdk
"
);
...
...
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