34 lines
886 B
JSON
34 lines
886 B
JSON
{
|
|
"$type": "service",
|
|
"name": "mariadb",
|
|
"description": "MariaDB RDBMS (MySQL fork)",
|
|
"info": "MariaDB is a mostly MySQL compatible relational database server.",
|
|
"help": "Default credentials are root/toor",
|
|
"tags": [ "rdbms", "mysql" ],
|
|
"author": null,
|
|
"image": "mariadb",
|
|
"ports": [
|
|
{ "port": 3306, "info": "MySQL client" }
|
|
],
|
|
"environment": {
|
|
"MARIADB_ROOT_PASSWORD": "toor"
|
|
},
|
|
"persistence": [
|
|
{ "path": "/data", "hint": "data" }
|
|
],
|
|
"scripts": {
|
|
"shell": {
|
|
"info": "Open the MariaDB shell",
|
|
"execute": [ "mysql", "-uroot", "-p${MARIADB_ROOT_PASSWORD}" ]
|
|
},
|
|
"export": {
|
|
"info": "Export the database",
|
|
"execute": "mysqldump -uroot -p${MARIADB_ROOT_PASSWORD} --all-databases"
|
|
},
|
|
"import": {
|
|
"info": "Import the database",
|
|
"execute": "mysql -uroot -p${MARIADB_ROOT_PASSWORD}"
|
|
}
|
|
}
|
|
}
|