{
  "manifest_version": "1.0.0",
  "template": {
    "id": "61afe329-4ada-45b9-b3cb-b0d1d645cbfb",
    "slug": "mage-ai-or-just-updated-data-pipeline-to",
    "name": "Mage AI | (Just Updated) Data Pipeline Tool, Generated Owner Login, Postgres Backed",
    "description": "Mage AI data pipeline tool with Postgres metadata, generated owner login",
    "url": "https://railway.com/deploy/mage-ai-or-just-updated-data-pipeline-to",
    "upstream": {
      "image": "mageai/mageai:0.9.80@sha256:73c8e808070ef55ffe263544809197820f38ca621349b5a8ed7d6366cb861cc8"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17.10-trixie"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "mage",
      "source": {
        "image": "mageai/mageai:0.9.80@sha256:73c8e808070ef55ffe263544809197820f38ca621349b5a8ed7d6366cb861cc8"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/src",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DEFAULT_OWNER_EMAIL",
      "service": "mage",
      "description": "Provide a value for DEFAULT_OWNER_EMAIL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DEFAULT_OWNER_PASSWORD",
      "service": "mage",
      "description": "Provide a value for DEFAULT_OWNER_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MAGE_DATABASE_CONNECTION_URL",
      "service": "mage",
      "description": "Provide a value for MAGE_DATABASE_CONNECTION_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mage-ai-or-just-updated-data-pipeline-to"
      }
    },
    "cli": "railway deploy --template mage-ai-or-just-updated-data-pipeline-to",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "61afe329-4ada-45b9-b3cb-b0d1d645cbfb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a6e2ae32-3895-4817-81bf-c2e420e69798": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.10-trixie"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "a6e2ae32-3895-4817-81bf-c2e420e69798": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "addbfaa8-f220-43f1-93f3-f9c4c1226911": {
                  "icon": null,
                  "name": "mage",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'S=/usr/local/lib/python3.10/site-packages; rm -rf $S/numpy/_core $S/numpy-2.2.6.dist-info; export ENV=production USER_CODE_PATH=/home/src/default_repo DEFAULT_OWNER_USERNAME=admin OMP_NUM_THREADS=4 OPENBLAS_NUM_THREADS=4 MKL_NUM_THREADS=4; exec /app/run_app.sh mage start default_repo --port \"$PORT\"'",
                    "healthcheckPath": "/api/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mageai/mageai:0.9.80@sha256:73c8e808070ef55ffe263544809197820f38ca621349b5a8ed7d6366cb861cc8"
                  },
                  "variables": {
                    "DEFAULT_OWNER_EMAIL": {
                      "isOptional": false,
                      "defaultValue": "admin@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DEFAULT_OWNER_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{DEFAULT_OWNER_PASSWORD}}"
                    },
                    "MAGE_DATABASE_CONNECTION_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql+psycopg2://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "addbfaa8-f220-43f1-93f3-f9c4c1226911": {
                      "mountPath": "/home/src"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mage",
      "method": "GET",
      "path": "/api/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-30T04:14:55.026Z",
  "generator_version": "0.1.0"
}
