{
  "manifest_version": "1.0.0",
  "template": {
    "id": "130c7446-04e5-4edd-bee7-22134d17e446",
    "slug": "metabase-bi-1",
    "name": "Metabase",
    "description": "Tableau Alternative. Business intelligence, dashboards & scheduled reports",
    "url": "https://railway.com/deploy/metabase-bi-1",
    "upstream": {
      "image": "metabase/metabase"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "metabase",
      "source": {
        "image": "metabase/metabase"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory, a subdirectory of the volume mount",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Standard PostgreSQL port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "libpq alias of the superuser name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "libpq alias of the default database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "libpq alias of the superuser password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity window of the generated self-signed TLS certificate",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period for in-flight connections on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "metabase",
      "description": "Railway health-check target port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "JAVA_OPTS",
      "service": "metabase",
      "description": "Heap sized from container memory limit",
      "secret": false,
      "strategy": "default",
      "default": "-XX:MaxRAMPercentage=70"
    },
    {
      "key": "MB_DB_HOST",
      "service": "metabase",
      "description": "Private database hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MB_DB_PASS",
      "service": "metabase",
      "description": "Database role password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_DB_PORT",
      "service": "metabase",
      "description": "Database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_DB_TYPE",
      "service": "metabase",
      "description": "Use PostgreSQL, not embedded H2",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "MB_DB_USER",
      "service": "metabase",
      "description": "Database role name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_SITE_URL",
      "service": "metabase",
      "description": "Public base URL for links and redirects",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MB_DB_DBNAME",
      "service": "metabase",
      "description": "Application database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_SITE_NAME",
      "service": "metabase",
      "description": "Instance name shown in the UI",
      "secret": false,
      "strategy": "default",
      "default": "Metabase"
    },
    {
      "key": "JAVA_TIMEZONE",
      "service": "metabase",
      "description": "Timezone for scheduled reports",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "MB_JETTY_PORT",
      "service": "metabase",
      "description": "Port Jetty binds",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "MB_METABOT_ENABLED",
      "service": "metabase",
      "description": "AI assistant off; set true with an LLM key",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MB_PASSWORD_COMPLEXITY",
      "service": "metabase",
      "description": "Password policy for local accounts",
      "secret": true,
      "strategy": "default",
      "default": "strong"
    },
    {
      "key": "MB_ANON_TRACKING_ENABLED",
      "service": "metabase",
      "description": "Disable anonymous usage telemetry",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MB_ENCRYPTION_SECRET_KEY",
      "service": "metabase",
      "description": "Encrypts saved data-source credentials",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MB_REDIRECT_ALL_REQUESTS_TO_HTTPS",
      "service": "metabase",
      "description": "Force HTTPS and send HSTS",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MB_APPLICATION_DB_MAX_CONNECTION_POOL_SIZE",
      "service": "metabase",
      "description": "Connection cap to the app database",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "MB_JDBC_DATA_WAREHOUSE_MAX_CONNECTION_POOL_SIZE",
      "service": "metabase",
      "description": "Connection cap per data source",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "metabase-bi-1"
      }
    },
    "cli": "railway deploy --template metabase-bi-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "130c7446-04e5-4edd-bee7-22134d17e446",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5b4d9d55-bab1-4590-aeb3-bcda36ef6bd8": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory, a subdirectory of the volume mount",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Standard PostgreSQL port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser name",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "libpq alias of the default database",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity window of the generated self-signed TLS certificate",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period for in-flight connections on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "5b4d9d55-bab1-4590-aeb3-bcda36ef6bd8": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "b3f7d01c-e3b3-4a3a-8a90-f28e07006154": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/metabase.svg",
                  "name": "metabase",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "metabase/metabase"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Railway health-check target port",
                      "defaultValue": "3000"
                    },
                    "JAVA_OPTS": {
                      "isOptional": false,
                      "description": "Heap sized from container memory limit",
                      "defaultValue": "-XX:MaxRAMPercentage=70"
                    },
                    "MB_DB_HOST": {
                      "isOptional": false,
                      "description": "Private database hostname",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MB_DB_PASS": {
                      "isOptional": false,
                      "description": "Database role password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "MB_DB_PORT": {
                      "isOptional": false,
                      "description": "Database port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "MB_DB_TYPE": {
                      "isOptional": false,
                      "description": "Use PostgreSQL, not embedded H2",
                      "defaultValue": "postgres"
                    },
                    "MB_DB_USER": {
                      "isOptional": false,
                      "description": "Database role name",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "MB_SITE_URL": {
                      "isOptional": false,
                      "description": "Public base URL for links and redirects",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MB_DB_DBNAME": {
                      "isOptional": false,
                      "description": "Application database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "MB_SITE_NAME": {
                      "isOptional": false,
                      "description": "Instance name shown in the UI",
                      "defaultValue": "Metabase"
                    },
                    "JAVA_TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone for scheduled reports",
                      "defaultValue": "UTC"
                    },
                    "MB_JETTY_PORT": {
                      "isOptional": false,
                      "description": "Port Jetty binds",
                      "defaultValue": "3000"
                    },
                    "MB_METABOT_ENABLED": {
                      "isOptional": false,
                      "description": "AI assistant off; set true with an LLM key",
                      "defaultValue": "false"
                    },
                    "MB_PASSWORD_COMPLEXITY": {
                      "isOptional": false,
                      "description": "Password policy for local accounts",
                      "defaultValue": "strong"
                    },
                    "MB_ANON_TRACKING_ENABLED": {
                      "isOptional": false,
                      "description": "Disable anonymous usage telemetry",
                      "defaultValue": "false"
                    },
                    "MB_ENCRYPTION_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Encrypts saved data-source credentials",
                      "defaultValue": "{{MB_ENCRYPTION_SECRET_KEY}}"
                    },
                    "MB_REDIRECT_ALL_REQUESTS_TO_HTTPS": {
                      "isOptional": false,
                      "description": "Force HTTPS and send HSTS",
                      "defaultValue": "true"
                    },
                    "MB_APPLICATION_DB_MAX_CONNECTION_POOL_SIZE": {
                      "isOptional": false,
                      "description": "Connection cap to the app database",
                      "defaultValue": "15"
                    },
                    "MB_JDBC_DATA_WAREHOUSE_MAX_CONNECTION_POOL_SIZE": {
                      "isOptional": false,
                      "description": "Connection cap per data source",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "metabase",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T18:07:19.130Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5bdc395420ec42b68534",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 74,
    "typical_build_seconds": 0,
    "typical_start_seconds": 51,
    "slowest_service": "metabase"
  }
}
