serverctl/registry/postgres.json

31 lines
616 B
JSON

{
"$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"
}
}
}