{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6a745b8e-a827-4558-8335-3a5f161ebda1",
    "slug": "apache-superset",
    "name": "Apache Superset",
    "description": "Self-host Apache Superset BI with workers, PostgreSQL and Redis",
    "url": "https://railway.com/deploy/apache-superset",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/superset-railway"
    }
  },
  "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": "superset-worker",
      "source": {
        "repo": "https://github.com/gridalpha/superset-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "superset-beat",
      "source": {
        "repo": "https://github.com/gridalpha/superset-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/superset_home",
      "http": false
    },
    {
      "name": "superset",
      "source": {
        "repo": "https://github.com/gridalpha/superset-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "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": "rRAILWAY_PRIVATE_DOMAINailway"
    },
    {
      "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": "REDIS_URL",
      "service": "superset-worker",
      "description": "Cache, queue and results backend",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "superset-worker",
      "description": "Metadata database connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_ROLE",
      "service": "superset-worker",
      "description": "Selects the Celery worker process",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "SUPERSET_PUBLIC_URL",
      "service": "superset-worker",
      "description": "Link base in report emails",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SUPERSET_SECRET_KEY",
      "service": "superset-worker",
      "description": "Shared with the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_WEB_SERVICE",
      "service": "superset-worker",
      "description": "Private hostname of the web service",
      "secret": false,
      "strategy": "default",
      "default": "superset"
    },
    {
      "key": "REDIS_URL",
      "service": "superset-beat",
      "description": "Cache, queue and results backend",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "superset-beat",
      "description": "Metadata database connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_ROLE",
      "service": "superset-beat",
      "description": "Selects the Celery beat scheduler",
      "secret": false,
      "strategy": "default",
      "default": "beat"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "superset-beat",
      "description": "Lets the entrypoint claim its volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SUPERSET_PUBLIC_URL",
      "service": "superset-beat",
      "description": "Link base in report emails",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SUPERSET_SECRET_KEY",
      "service": "superset-beat",
      "description": "Shared with the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_WEB_SERVICE",
      "service": "superset-beat",
      "description": "Private hostname of the web service",
      "secret": false,
      "strategy": "default",
      "default": "superset"
    },
    {
      "key": "PORT",
      "service": "superset",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "8088"
    },
    {
      "key": "REDIS_URL",
      "service": "superset",
      "description": "Cache, queue and results backend",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "superset",
      "description": "First administrator email",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "DATABASE_URL",
      "service": "superset",
      "description": "Metadata database connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPERSET_ROLE",
      "service": "superset",
      "description": "Selects the gunicorn web process",
      "secret": false,
      "strategy": "default",
      "default": "web"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "superset",
      "description": "First administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "superset",
      "description": "First administrator username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "SUPERSET_SECRET_KEY",
      "service": "superset",
      "description": "Encrypts stored database passwords",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SUPERSET_WEB_SERVICE",
      "service": "superset",
      "description": "Private hostname of the web service",
      "secret": false,
      "strategy": "default",
      "default": "superset"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "apache-superset"
      }
    },
    "cli": "railway deploy --template apache-superset",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6a745b8e-a827-4558-8335-3a5f161ebda1",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3aadc0e0-5148-4142-8642-888b840c55a5": {
                  "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": "rRAILWAY_PRIVATE_DOMAINailway"
                    },
                    "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": {
                    "3aadc0e0-5148-4142-8642-888b840c55a5": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "52824473-3627-447d-a9cc-08227674484a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/apache-superset.svg",
                  "name": "superset-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/superset-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Cache, queue and results backend",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Metadata database connection",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "SUPERSET_ROLE": {
                      "isOptional": false,
                      "description": "Selects the Celery worker process",
                      "defaultValue": "worker"
                    },
                    "SUPERSET_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Link base in report emails",
                      "defaultValue": "https://${{superset.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SUPERSET_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Shared with the web service",
                      "defaultValue": "${{superset.SUPERSET_SECRET_KEY}}"
                    },
                    "SUPERSET_WEB_SERVICE": {
                      "isOptional": false,
                      "description": "Private hostname of the web service",
                      "defaultValue": "superset"
                    }
                  }
                },
                "661e0e66-e9f1-4109-b276-bcd08d28e7f8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/apache-superset.svg",
                  "name": "superset-beat",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/superset-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Cache, queue and results backend",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Metadata database connection",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "SUPERSET_ROLE": {
                      "isOptional": false,
                      "description": "Selects the Celery beat scheduler",
                      "defaultValue": "beat"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Lets the entrypoint claim its volume",
                      "defaultValue": "0"
                    },
                    "SUPERSET_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Link base in report emails",
                      "defaultValue": "https://${{superset.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SUPERSET_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Shared with the web service",
                      "defaultValue": "${{superset.SUPERSET_SECRET_KEY}}"
                    },
                    "SUPERSET_WEB_SERVICE": {
                      "isOptional": false,
                      "description": "Private hostname of the web service",
                      "defaultValue": "superset"
                    }
                  },
                  "volumeMounts": {
                    "661e0e66-e9f1-4109-b276-bcd08d28e7f8": {
                      "mountPath": "/app/superset_home"
                    }
                  }
                },
                "6cf06c89-3c5f-48da-a65b-fd222e5f6019": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/apache-superset.svg",
                  "name": "superset",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/superset-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "8088"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Cache, queue and results backend",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator email",
                      "defaultValue": "admin@example.com"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Metadata database connection",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "SUPERSET_ROLE": {
                      "isOptional": false,
                      "description": "Selects the gunicorn web process",
                      "defaultValue": "web"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator password",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "First administrator username",
                      "defaultValue": "admin"
                    },
                    "SUPERSET_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored database passwords",
                      "defaultValue": "{{SUPERSET_SECRET_KEY}}"
                    },
                    "SUPERSET_WEB_SERVICE": {
                      "isOptional": false,
                      "description": "Private hostname of the web service",
                      "defaultValue": "superset"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8088": {
                        "port": 8088
                      }
                    }
                  }
                },
                "e5af49b9-f3e0-46b5-ab70-2eb8ce17a374": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Standard Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default ACL user created on first boot",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the generated password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the default user",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "e5af49b9-f3e0-46b5-ab70-2eb8ce17a374": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "superset",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T18:01:36.650Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_09ec829b85ef490f9091",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 182,
    "typical_build_seconds": 66,
    "typical_start_seconds": 14,
    "slowest_service": "superset-beat"
  }
}
