Misc fixes, templates

This commit is contained in:
2024-03-02 17:10:30 +01:00
parent 61f4f767c6
commit df3e1211af
7 changed files with 27 additions and 9 deletions

View File

@ -2,6 +2,7 @@
"$type": "service",
"name": "mailhog",
"description": "SMTP server that holds e-mail for debugging",
"info": "Mailhog accepts e-mails from any configured app over SMTP for use during development. Received messages can be displayed in the web interface.",
"tags": [ "app", "mail", "smtp" ],
"author": null,
"image": "mailhog/mailhog",

View File

@ -2,6 +2,7 @@
"$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,
@ -16,17 +17,17 @@
{ "path": "/data", "hint": "data" }
],
"scripts": {
"mongosh": {
"info": "Open the mongo shell",
"execute": "mongosh"
"shell": {
"info": "Open the MariaDB shell",
"execute": [ "mysql", "-uroot", "-p${MARIADB_ROOT_PASSWORD}" ]
},
"export": {
"info": "Export the database",
"execute": "mysqldump "
"execute": "mysqldump -uroot -p${MARIADB_ROOT_PASSWORD} --all-databases"
},
"import": {
"info": "Import the database",
"execute": "mongoimport"
"execute": "mysql -uroot -p${MARIADB_ROOT_PASSWORD}"
}
}
}

View File

@ -18,7 +18,8 @@
"scripts": {
"shell": {
"info": "Open the mongo shell",
"execute": "mongosh"
"execute": "mongosh",
"arguments": [ "-u", "root", "-p", "toor" ]
},
"export": {
"info": "Export the database",

View File

@ -17,7 +17,7 @@
],
"scripts": {
"shell": {
"info": "Open the mongo shell",
"info": "Open the MySQL shell",
"execute": "mysql -uroot -p%{MARIADB_ROOT_PASSWORD}"
},
"export": {