Initial commit

This commit is contained in:
2022-09-27 12:29:56 +02:00
commit 592f5579ab
18 changed files with 1436 additions and 0 deletions

30
registry/mariadb.json Normal file
View File

@ -0,0 +1,30 @@
{
"$type": "service",
"name": "mariadb",
"description": "MariaDB (MySQL fork)",
"author": null,
"image": "mariadb",
"ports": [
{ "port": 3306, "info": "MySQL client" }
],
"environment": {
"MARIADB_ROOT_PASSWORD": "toor"
},
"persistence": [
{ "path": "/data", "hint": "data" }
],
"scripts": {
"mongosh": {
"info": "Open the mongo shell",
"execute": "mongosh"
},
"export": {
"info": "Export the database",
"execute": "mysqldump "
},
"import": {
"info": "Import the database",
"execute": "mongoimport"
}
}
}

31
registry/mongo.json Normal file
View File

@ -0,0 +1,31 @@
{
"$type": "service",
"name": "mongo",
"description": "MongoDB",
"author": null,
"image": "mongo",
"ports": [
{ "port": 27017, "info": "Mongo client" }
],
"persistence": [
{ "path": "/data/db", "hint": "data" }
],
"environment": {
"MONGO_INITDB_ROOT_PASSWORD": "toor",
"MONGO_INITDB_ROOT_USERNAME": "root"
},
"scripts": {
"shell": {
"info": "Open the mongo shell",
"execute": "mongosh"
},
"export": {
"info": "Export the database",
"execute": "mongodump"
},
"import": {
"info": "Import the database",
"execute": "mongoimport"
}
}
}

30
registry/mysql.json Normal file
View File

@ -0,0 +1,30 @@
{
"$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}"
}
}
}

30
registry/postgres.json Normal file
View File

@ -0,0 +1,30 @@
{
"$type": "service",
"name": "postgres",
"description": "Postgres SQL server",
"author": null,
"image": "postgres",
"ports": [
{ "port": 5432, "info": "Postgres client" }
],
"environment": {
"POSTGRES_PASSWORD": "password"
},
"persistence": [
{ "path": "/data", "hint": "data" }
],
"scripts": {
"mongosh": {
"info": "Open a pg shell",
"execute": "psql --user postgres"
},
"export": {
"info": "Export the database",
"execute": "mysqldump "
},
"import": {
"info": "Import the database",
"execute": "mongoimport"
}
}
}