Skip to content

sky92i/Flask-REST-API-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Flask REST API with MongoDB

Assignment of COMP3122

Steps to run the image

1. To startup the Mongo DB with sample data, git clone the Github repository by executing:

git clone https://github.com/cswclui/mongodb-docker

2. Launch the mongoDB container by executing:

cd mongodb-docker
docker-compose up

Exit the mongo shell with Ctrl+D.

3. Pull my docker image by executing:

docker pull ***redacted*** (Please build the image on your own.)

4. Run my docker image by executing:

docker run --rm --network ass1 -e MONGO_USERNAME=comp3122 -e MONGO_PASSWORD=12345 -e MONGO_SERVER_HOST='mongo' -e MONGO_SERVER_PORT='27017' -p 9990:15000 12345678d/student_svc

To stop and remove the running containers and created volumes, execute:

docker-compose down -v

To build the image

docker build . -t 12345678d/student_svc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published