From 76d84319bdce868162e513fb8d63befbe4e2c7e1 Mon Sep 17 00:00:00 2001 From: Ali AlNaghmousgh Date: Mon, 21 Apr 2025 07:48:29 +0300 Subject: [PATCH] feat: add Autobase template (#85) * feat: add Autobase template * Added Autobase, an open-source alternative to cloud-managed databases, to the meta.json file with relevant details including version, description, links, logo, and tags. * Update blueprints/autobase/docker-compose.yml * Update blueprints/autobase/docker-compose.yml --------- Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> --- blueprints/autobase/autobase.svg | 11 +++++++++++ blueprints/autobase/docker-compose.yml | 16 ++++++++++++++++ blueprints/autobase/template.toml | 23 +++++++++++++++++++++++ meta.json | 13 +++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 blueprints/autobase/autobase.svg create mode 100644 blueprints/autobase/docker-compose.yml create mode 100644 blueprints/autobase/template.toml diff --git a/blueprints/autobase/autobase.svg b/blueprints/autobase/autobase.svg new file mode 100644 index 00000000..8e6bbc96 --- /dev/null +++ b/blueprints/autobase/autobase.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/blueprints/autobase/docker-compose.yml b/blueprints/autobase/docker-compose.yml new file mode 100644 index 00000000..b2ac57f9 --- /dev/null +++ b/blueprints/autobase/docker-compose.yml @@ -0,0 +1,16 @@ +services: + autobase-console: + image: autobase/console:2.2.0 + restart: unless-stopped + ports: + - "80" + - "8080" + environment: + - PG_CONSOLE_API_URL=${PG_CONSOLE_API_URL} + - PG_CONSOLE_AUTHORIZATION_TOKEN=${PG_CONSOLE_AUTHORIZATION_TOKEN} + volumes: + - console_postgres:/var/lib/postgresql + - /tmp/ansible:/tmp/ansible + +volumes: + console_postgres: \ No newline at end of file diff --git a/blueprints/autobase/template.toml b/blueprints/autobase/template.toml new file mode 100644 index 00000000..3900973d --- /dev/null +++ b/blueprints/autobase/template.toml @@ -0,0 +1,23 @@ +[variables] +main_domain = "${domain}" +api_domain = "${domain}" +authenticattion_token = "${base64:32}" + +[config] +env = [ + "HTTP_PORT=8900", + "API_PORT=8090", + "PG_CONSOLE_API_URL=https://${api_domain}", + "PG_CONSOLE_AUTHORIZATION_TOKEN=${authenticattion_token}", +] +mounts = [] + +[[config.domains]] +serviceName = "autobase-console" +port = 80 +host = "${main_domain}" + +[[config.domains]] +serviceName = "autobase-console" +port = 8_080 +host = "${api_domain}" diff --git a/meta.json b/meta.json index 81d03e64..a846a11a 100644 --- a/meta.json +++ b/meta.json @@ -1,4 +1,17 @@ [ + { + "id": "autobase", + "name": "Autobase", + "version": "2.2.0", + "description": "Autobase for PostgreSQLĀ® is an open-source alternative to cloud-managed databases (DBaaS) such as Amazon RDS, Google Cloud SQL, Azure Database, and more.", + "links": { + "github": "https://github.com/vitabaks/autobase", + "website": "https://autobase.tech/", + "docs": "https://autobase.tech/docs" + }, + "logo": "autobase.svg", + "tags": ["database", "postgres", "self-hosted", "server"] + }, { "id": "appwrite", "name": "Appwrite",