Uses myaas as a backend to create on demand databases and proxies to them.
100K+
Available on docker hub as habitissimo/mysql-proxy.
You can use this image to integrate myaas in your docker workflow, any container linking to a mysql container can link to this image instead and use the myaas service transparently.
Despite the name indicates it is a proxy for mysql it should work for MyAAS working with any backend (including Postgres), but the listen port for the proxy is hardcoded to 3306. The proxy is protocol agnostic, it's just a TCP proxy.
On start it will request a new database instance to the MyAAS server, once the instance is online it will run a socat proxy to it, your containers linking to this container will be able to connect to that mysql instance on port 3306.
When the container is stoped it will send a request to the MyAAS server to delete the database (unless MYAAS_NO_REMOVE is set to a non 0 value).
Example usage:
docker run -it \
-e MYAAS_URL=http://myaas-server:5001 \
-e MYAAS_TEMPLATE=template \
-e MYAAS_NAME=name \
habitissimo/mysql-proxy
Required:
Optional:
Content type
Image
Digest
Size
5.9 MB
Last updated
almost 7 years ago
docker pull habitissimo/mysql-proxy