Skip to content

kristaum/Docker_python_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Docker_python_api

This Project was created to test out the Python_API_twitter project wihout having to install mongoDB and pyhton modules on local machine.
In order to link the containers, so python could talk to mongoDB, create a network.
docker network create -d bridge --subnet 172.25.0.0/16 apinetwork

Create the containers assigning then to the network, only assigning the ip to mongo because we binded this IP to it on Dockerfile
docker run --name db -p 27017:27017 --net apinetwork --ip 172.25.0.2 -d mongodb_image
docker run --name web_api -p 2880:2880 --net apinetwork -d python_image

These images are also available on docker hub

  • kristaum/api_python_twitter:python_api
  • kristaum/mongodb_api:mongodb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published