Sign inSign up

micwy/mysql2json

By micwy

Updated about 5 years ago

This webservce exposes the results from a single mysql query as json

Image
0

2.4K

micwy/mysql2json repository overview

MySQL to JSON Webservice

This webservce exposes the results from a single mysql query as json.

Environment variables

  • MYSQL_HOST (required) - hostname or ip address of mysql server
  • MYSQL_PORT (default 3306) - port of mysql server
  • MYSQL_USER (required) - username for mysql connection
  • MYSQL_PASSWORD (required) - password for mysql connection
  • MYSQL_DATABASE (required) - mysql database to connect to
  • MYSQL_QUERY (required) - query to execute
  • HTTP_PORT (default 8000) - port of http server
  • ACCESS_TOKEN (optional) - if set, the webservice is proteced by this token which must be passed as ?access_token=**** to the request

Tag summary

Content type

Image

Digest

Size

23.7 MB

Last updated

about 5 years ago

docker pull micwy/mysql2json