serverctl/registry/mysql.json

31 lines
676 B
JSON
Raw Normal View History

2022-09-27 10:29:56 +00:00
{
"$type": "service",
"name": "mysql",
"description": "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}"
}
}
}