From 0438165d43ae5d3e491284e9bed308f6f876b982 Mon Sep 17 00:00:00 2001 From: Khiet Tam Nguyen <86177399+nktnet1@users.noreply.github.com> Date: Fri, 19 Dec 2025 15:39:16 +1100 Subject: [PATCH] feat(blueprint): mage ai template (#601) * feat(blueprint): template for mage-ai * fix: add healthcheck for mage-ai --- blueprints/mage-ai/docker-compose.yml | 26 ++++++++++++++++++ blueprints/mage-ai/mage-ai.svg | 38 +++++++++++++++++++++++++++ blueprints/mage-ai/template.toml | 11 ++++++++ meta.json | 18 +++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 blueprints/mage-ai/docker-compose.yml create mode 100644 blueprints/mage-ai/mage-ai.svg create mode 100644 blueprints/mage-ai/template.toml diff --git a/blueprints/mage-ai/docker-compose.yml b/blueprints/mage-ai/docker-compose.yml new file mode 100644 index 00000000..7c9bbc23 --- /dev/null +++ b/blueprints/mage-ai/docker-compose.yml @@ -0,0 +1,26 @@ +# https://docs.mage.ai/getting-started/setup#docker-compose +# +# The default credentials are: +# USERNAME: admin@admin.com +# PASSWORD: admin + +services: + mage-ai: + image: mageai/mageai:0.9.78 + command: mage start ${PROJECT_NAME} + environment: + USER_CODE_PATH: /home/src/${PROJECT_NAME} + ENV: ${ENV} + expose: + - 6789 + volumes: + - mageai_data:/home/src/ + restart: unless-stopped + healthcheck: + test: ["CMD", "curl", "-s", "-f", "-o", "/dev/null", "http://localhost:6789"] + interval: 30s + timeout: 10s + retries: 5 + +volumes: + mageai_data: diff --git a/blueprints/mage-ai/mage-ai.svg b/blueprints/mage-ai/mage-ai.svg new file mode 100644 index 00000000..d45a7d1b --- /dev/null +++ b/blueprints/mage-ai/mage-ai.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/blueprints/mage-ai/template.toml b/blueprints/mage-ai/template.toml new file mode 100644 index 00000000..12cd84e6 --- /dev/null +++ b/blueprints/mage-ai/template.toml @@ -0,0 +1,11 @@ +[variables] +main_domain = "${domain}" + +[[config.domains]] +serviceName = "mage-ai" +port = 6789 +host = "${main_domain}" + +[config.env] +PROJECT_NAME = "mage-ai" +ENV = "production" diff --git a/meta.json b/meta.json index 8122e183..fccd7447 100644 --- a/meta.json +++ b/meta.json @@ -3596,6 +3596,24 @@ "os" ] }, + { + "id": "mage-ai", + "name": "Mage AI", + "version": "0.9.78", + "description": "Build, run, and manage data pipelines for integrating and transforming data.", + "logo": "mage-ai.svg", + "links": { + "github": "https://github.com/mage-ai/mage-ai", + "website": "https://mage.ai", + "docs": "https://docs.mage.ai" + }, + "tags": [ + "data", + "dbt", + "etl", + "pipelines" + ] + }, { "id": "mailpit", "name": "Mailpit",