Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CloudComputing_Act1
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
Jesus Galaz Reyes
CloudComputing_Act1
Commits
faa06005
Commit
faa06005
authored
5 months ago
by
Rokas Stankunas
Browse files
Options
Downloads
Patches
Plain Diff
Updated deployment instructions
parent
25fe2af9
Branches
15-secure-database
Branches containing commit
No related tags found
1 merge request
!11
Implementing "Secure database" issue
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+14
-6
14 additions, 6 deletions
README.md
with
14 additions
and
6 deletions
README.md
+
14
−
6
View file @
faa06005
...
...
@@ -18,7 +18,7 @@ e.g., using BCRYPT)
Develop a TODO app that fulfills the requirements from above. You can use any language
and framework that you want. The app needs to be connected to a database to store the TODO
lists.
**
Use MongoDB as the database.
**
lists. Use MongoDB as the database.
---
## Prerequisites
-
Git
...
...
@@ -32,11 +32,19 @@ In exercise 1, the deployment consisted of 2 parts: deploying the database and t
`git clone https://gitlab.reutlingen-university.de/gajesh24/cloudcomputing_act1.git`
2.
Enter the folder:
`cd cloudcomputing_act1`
3.
Build the image:
`sudo docker build -t todo-app .`
4.
Start docker compose file
`sudo docker compose up -d`
5.
Open up website on
`http://localhost/`
3.
Create .env file with the following contents:
`
MONGO_INITDB_ROOT_USERNAME=mongoAdmin
MONGO_INITDB_ROOT_PASSWORD=someRandomPassword123
MONGO_URI=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@mongodb:27017/todo-app?authSource=admin
`
4.
Build the application
`sudo docker compose build`
5.
Run the application
`sudo docker compose --env-file .env up -d`
6.
Open up website on
`http://localhost/`
7.
To stop the application
`sudo docker compose stop`
---
## Authors
...
...
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