serverctl/registry/mysql.json

32 lines
714 B
JSON

{
"$type": "service",
"name": "mysql",
"description": "MySQL RDBMS",
"tags": [ "rdbms", "mysql" ],
"author": null,
"image": "mysql",
"ports": [
{ "port": 3306, "info": "MySQL client" }
],
"environment": {
"MARIADB_ROOT_PASSWORD": "toor"
},
"persistence": [
{ "path": "/data", "hint": "data" }
],
"scripts": {
"shell": {
"info": "Open the mongo shell",
"execute": "mysql -uroot -p%{MARIADB_ROOT_PASSWORD}"
},
"export": {
"info": "Export the database",
"execute": "mysqldump -uroot -p%{MARIADB_ROOT_PASSWORD}"
},
"import": {
"info": "Import the database",
"execute": "mysql -uroot -p%{MARIADB_ROOT_PASSWORD}"
}
}
}