{
  "manifest_version": "1.0.0",
  "template": {
    "id": "daf783d8-72a8-4ad9-b8fa-f1ca649301c3",
    "slug": "metabase-updated-jul-26",
    "name": "Metabase [Updated Sep '26]",
    "description": "Metabase [Sep '26] (Open-Source Tooling & Analytics) Self Host",
    "url": "https://railway.com/deploy/metabase-updated-jul-26",
    "upstream": {
      "repo_url": "https://github.com/shruti060701/metabase-railway"
    }
  },
  "services": [
    {
      "name": "metabase-railway",
      "source": {
        "repo": "https://github.com/shruti060701/metabase-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "metabase-railway",
      "description": "Port Railway routes external traffic to. Must be set explicitly as a variable here — a Dockerfile default alone isn't enough for Railway's edge to route correctly.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "MB_DB_HOST",
      "service": "metabase-railway",
      "description": "nternal hostname for Metabase's application database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_DB_PASS",
      "service": "metabase-railway",
      "description": "Password for Metabase's application database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_DB_PORT",
      "service": "metabase-railway",
      "description": "Port for Metabase's application database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_DB_TYPE",
      "service": "metabase-railway",
      "description": "Tells Metabase to use an external Postgres database for its own application data instead of the embedded default (H2), which isn't suitable for production.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "MB_DB_USER",
      "service": "metabase-railway",
      "description": "Username for Metabase's application database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_DB_DBNAME",
      "service": "metabase-railway",
      "description": "Database name for Metabase's own metadata (dashboards, questions, users) — separate from whatever data source you connect to later.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MB_JETTY_PORT",
      "service": "metabase-railway",
      "description": "Metabase's own actual port-configuration variable (it does not read Railway's generic `PORT` itself) — set alongside `PORT` above so the app definitely binds where Railway expects it.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory where Postgres stores its data files.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname — what `MB_DB_HOST` actually connects through.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on internally. Verify this is actually filled in, not left as an empty \"to be filled by the user\" placeholder — this exact composer glitch has recurred on this project's Umami and NocoDB templates.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Database username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Database password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database name created on startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Public/external connection string for reaching this database from outside Railway's network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Username for the Postgres superuser account.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate validity period.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated superuser password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public/external connection string for reaching this database from outside Railway's network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway waits for active connections before a redeploy. Verify this is actually filled in, same empty-placeholder caveat as `PGPORT` above.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "metabase-updated-jul-26"
      }
    },
    "cli": "railway deploy --template metabase-updated-jul-26",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "daf783d8-72a8-4ad9-b8fa-f1ca649301c3",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "65f94b11-e362-4ce9-b5fb-507e0946bc23": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/metabase.svg",
                  "name": "metabase-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/metabase-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes external traffic to. Must be set explicitly as a variable here — a Dockerfile default alone isn't enough for Railway's edge to route correctly.",
                      "defaultValue": "3000"
                    },
                    "MB_DB_HOST": {
                      "isOptional": false,
                      "description": "nternal hostname for Metabase's application database.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "MB_DB_PASS": {
                      "isOptional": false,
                      "description": "Password for Metabase's application database.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "MB_DB_PORT": {
                      "isOptional": false,
                      "description": "Port for Metabase's application database.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "MB_DB_TYPE": {
                      "isOptional": false,
                      "description": "Tells Metabase to use an external Postgres database for its own application data instead of the embedded default (H2), which isn't suitable for production.",
                      "defaultValue": "postgres"
                    },
                    "MB_DB_USER": {
                      "isOptional": false,
                      "description": "Username for Metabase's application database.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "MB_DB_DBNAME": {
                      "isOptional": false,
                      "description": "Database name for Metabase's own metadata (dashboards, questions, users) — separate from whatever data source you connect to later.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "MB_JETTY_PORT": {
                      "isOptional": false,
                      "description": "Metabase's own actual port-configuration variable (it does not read Railway's generic `PORT` itself) — set alongside `PORT` above so the app definitely binds where Railway expects it.",
                      "defaultValue": "3000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "6d0ff1ee-7bf0-4c2c-b210-d2e1a95eaaaa": {
                  "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": true,
                      "description": "Directory where Postgres stores its data files.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname — what `MB_DB_HOST` actually connects through.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port Postgres listens on internally. Verify this is actually filled in, not left as an empty \"to be filled by the user\" placeholder — this exact composer glitch has recurred on this project's Umami and NocoDB templates.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Database username.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Database password.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database name created on startup.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Public/external connection string for reaching this database from outside Railway's network.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Username for the Postgres superuser account.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate validity period.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated superuser password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public/external connection string for reaching this database from outside Railway's network.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds Railway waits for active connections before a redeploy. Verify this is actually filled in, same empty-placeholder caveat as `PGPORT` above.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "6d0ff1ee-7bf0-4c2c-b210-d2e1a95eaaaa": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "metabase-railway",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T13:12:03.695Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_684c8a28fa4641e5b3bb",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 163,
    "typical_build_seconds": 30,
    "typical_start_seconds": 50,
    "slowest_service": "metabase-railway"
  }
}
