Skip to content

ma1onso/docker-flask-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-flask-mongodb

Preparation

Like this -> MONGODB_URL="mongodb+srv://USER:PASSWORD@cluster0.aba4cnn.mongodb.net/?retryWrites=true&w=majority"

Authorize IP address from MongoDB

If you have problems to connect to mongodb cloud, check if you need to approved you IP address on the mongodb webpage.

Build the project

docker build -t doflamon .

Run the project

docker run -p 5000:5000 doflamon

Endpoints:

  • POST /new_task: Create a new record in cmd_collection and save the output in cmd_output_collection.

  • GET /get_output/<id>: Received a id from cmd_output_collection and return the output from a command.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published