Skip to content

A python micro service template for receiving a JSON entity stream from a Sesam service instance.

License

Notifications You must be signed in to change notification settings

giskou/mongodb-sink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#mongodb-datasink

A python micro service for receiving a JSON entity stream from a Sesam service instance and pushing them to MongoDB.

A docker image is provided here: https://hub.docker.com/r/giskou/mongodb-sink/

docker run -it --rm \
  --name=mongodb-sink \
  --network=<network> \
  -p 5001:5001 \
  -e MONGODB_HOST=<host> \
  -e MONGODB_PORT=<port> \
  -e MONGODB_USERNAME=<username> \
  -e MONGODB_PASSWORD=<password> \
  -e MONGODB_DATABASE=<database> \
  giskou/mongodb-sink
  • MONGODB_HOST: the hostname of the mongodb instance the sink will connect to. (default: localhost)
  • MONGODB_PORT: the port of the mongodb instance the sink will connect to. (default: 27017)
  • MONGODB_DATABASE: the database to push data to
  • MONGODB_USERNAME: the username of database user
  • MONGODB_PASSWORD: the password of the database user

The service is running on port 5001 and accepts connections to the following endpoint:

POST /<collection>

collection is the collection to push the data into. If it does not exist it will be created.

About

A python micro service template for receiving a JSON entity stream from a Sesam service instance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%