{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6f6f7a34-2b85-4051-8fb9-680b1219204d",
    "slug": "temporal-cluster",
    "name": "temporal-cluster",
    "description": "Open Source Durable Workflow Engine. Retries, schedules & timers",
    "url": "https://railway.com/deploy/temporal-cluster",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/temporal-railway"
    }
  },
  "services": [
    {
      "name": "temporal-worker",
      "source": {
        "repo": "https://github.com/gridalpha/temporal-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "temporal-ui",
      "source": {
        "image": "temporalio/ui:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "proxy",
      "source": {
        "repo": "https://github.com/gridalpha/temporal-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "temporal-history",
      "source": {
        "repo": "https://github.com/gridalpha/temporal-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "temporal-frontend",
      "source": {
        "repo": "https://github.com/gridalpha/temporal-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "temporal-matching",
      "source": {
        "repo": "https://github.com/gridalpha/temporal-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DB",
      "service": "temporal-worker",
      "description": "Persistence plugin name",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "PORT",
      "service": "temporal-worker",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "DBNAME",
      "service": "temporal-worker",
      "description": "Persistence database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "DB_PORT",
      "service": "temporal-worker",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ENABLE_ES",
      "service": "temporal-worker",
      "description": "Use Postgres visibility, not Elasticsearch",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LOG_LEVEL",
      "service": "temporal-worker",
      "description": "Server log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BIND_ON_IP",
      "service": "temporal-worker",
      "description": "Dual-stack listen address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal-worker",
      "description": "Shared with the other roles",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal-worker",
      "description": "Temporal's own database role",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal-worker",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_SERVICES",
      "service": "temporal-worker",
      "description": "Server role this service runs",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "VISIBILITY_DBNAME",
      "service": "temporal-worker",
      "description": "Visibility database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility"
    },
    {
      "key": "NUM_HISTORY_SHARDS",
      "service": "temporal-worker",
      "description": "Must match every other role",
      "secret": false,
      "strategy": "default",
      "default": "512"
    },
    {
      "key": "PROMETHEUS_ENDPOINT",
      "service": "temporal-worker",
      "description": "Metrics listener address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:9090"
    },
    {
      "key": "PORT",
      "service": "temporal-ui",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "temporal-ui",
      "description": "Frontend gRPC address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_UI_PORT",
      "service": "temporal-ui",
      "description": "Web UI listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_CORS_ORIGINS",
      "service": "temporal-ui",
      "description": "Allowed browser origin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TEMPORAL_DEFAULT_NAMESPACE",
      "service": "temporal-ui",
      "description": "Namespace opened on load",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "TEMPORAL_DISABLE_NEWS_FETCH",
      "service": "temporal-ui",
      "description": "No outbound call for release notes",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TEMPORAL_CSRF_COOKIE_INSECURE",
      "service": "temporal-ui",
      "description": "Keep the CSRF cookie Secure",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PORT",
      "service": "proxy",
      "description": "Caddy listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "proxy",
      "description": "Web UI backend address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UI_PASSWORD",
      "service": "proxy",
      "description": "Web UI password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "UI_USERNAME",
      "service": "proxy",
      "description": "Web UI username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DB",
      "service": "temporal-history",
      "description": "Persistence plugin name",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "PORT",
      "service": "temporal-history",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "DBNAME",
      "service": "temporal-history",
      "description": "Persistence database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "DB_PORT",
      "service": "temporal-history",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ENABLE_ES",
      "service": "temporal-history",
      "description": "Use Postgres visibility, not Elasticsearch",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LOG_LEVEL",
      "service": "temporal-history",
      "description": "Server log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BIND_ON_IP",
      "service": "temporal-history",
      "description": "Dual-stack listen address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal-history",
      "description": "Shared with the other roles",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal-history",
      "description": "Temporal's own database role",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal-history",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_SERVICES",
      "service": "temporal-history",
      "description": "Server role this service runs",
      "secret": false,
      "strategy": "default",
      "default": "history"
    },
    {
      "key": "VISIBILITY_DBNAME",
      "service": "temporal-history",
      "description": "Visibility database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility"
    },
    {
      "key": "NUM_HISTORY_SHARDS",
      "service": "temporal-history",
      "description": "Must match every other role",
      "secret": false,
      "strategy": "default",
      "default": "512"
    },
    {
      "key": "PROMETHEUS_ENDPOINT",
      "service": "temporal-history",
      "description": "Metrics listener address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:9090"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "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": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "DB",
      "service": "temporal-frontend",
      "description": "Persistence plugin name",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "PORT",
      "service": "temporal-frontend",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "DBNAME",
      "service": "temporal-frontend",
      "description": "Persistence database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "DB_PORT",
      "service": "temporal-frontend",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ENABLE_ES",
      "service": "temporal-frontend",
      "description": "Use Postgres visibility, not Elasticsearch",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LOG_LEVEL",
      "service": "temporal-frontend",
      "description": "Server log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BIND_ON_IP",
      "service": "temporal-frontend",
      "description": "Dual-stack listen address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal-frontend",
      "description": "Password for that role",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal-frontend",
      "description": "Temporal's own database role",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal-frontend",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DEFAULT_NAMESPACE",
      "service": "temporal-frontend",
      "description": "Namespace created at first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "TEMPORAL_SERVICES",
      "service": "temporal-frontend",
      "description": "Server role this service runs",
      "secret": false,
      "strategy": "default",
      "default": "frontend"
    },
    {
      "key": "VISIBILITY_DBNAME",
      "service": "temporal-frontend",
      "description": "Visibility database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility"
    },
    {
      "key": "NUM_HISTORY_SHARDS",
      "service": "temporal-frontend",
      "description": "Shard count, fixed at first boot",
      "secret": false,
      "strategy": "default",
      "default": "512"
    },
    {
      "key": "PROMETHEUS_ENDPOINT",
      "service": "temporal-frontend",
      "description": "Metrics listener address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:9090"
    },
    {
      "key": "TEMPORAL_SCHEMA_SETUP",
      "service": "temporal-frontend",
      "description": "This role applies the schema",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DEFAULT_NAMESPACE_RETENTION",
      "service": "temporal-frontend",
      "description": "Closed workflow history retention",
      "secret": false,
      "strategy": "default",
      "default": "72h"
    },
    {
      "key": "TEMPORAL_ADMIN_DATABASE_URL",
      "service": "temporal-frontend",
      "description": "Superuser URL, first-boot provisioning only",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TEMPORAL_REGISTER_DEFAULT_NAMESPACE",
      "service": "temporal-frontend",
      "description": "This role registers the namespace",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB",
      "service": "temporal-matching",
      "description": "Persistence plugin name",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "PORT",
      "service": "temporal-matching",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "DBNAME",
      "service": "temporal-matching",
      "description": "Persistence database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "DB_PORT",
      "service": "temporal-matching",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ENABLE_ES",
      "service": "temporal-matching",
      "description": "Use Postgres visibility, not Elasticsearch",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LOG_LEVEL",
      "service": "temporal-matching",
      "description": "Server log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BIND_ON_IP",
      "service": "temporal-matching",
      "description": "Dual-stack listen address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal-matching",
      "description": "Shared with the other roles",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal-matching",
      "description": "Temporal's own database role",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal-matching",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_SERVICES",
      "service": "temporal-matching",
      "description": "Server role this service runs",
      "secret": false,
      "strategy": "default",
      "default": "matching"
    },
    {
      "key": "VISIBILITY_DBNAME",
      "service": "temporal-matching",
      "description": "Visibility database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility"
    },
    {
      "key": "NUM_HISTORY_SHARDS",
      "service": "temporal-matching",
      "description": "Must match every other role",
      "secret": false,
      "strategy": "default",
      "default": "512"
    },
    {
      "key": "PROMETHEUS_ENDPOINT",
      "service": "temporal-matching",
      "description": "Metrics listener address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:9090"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "temporal-cluster"
      }
    },
    "cli": "railway deploy --template temporal-cluster",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6f6f7a34-2b85-4051-8fb9-680b1219204d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "108a659b-8492-42e2-83e2-5587a3268caa": {
                  "icon": "https://cdn.simpleicons.org/temporal/FFFFFF",
                  "name": "temporal-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/temporal-railway",
                    "rootDirectory": "server"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": false,
                      "description": "Persistence plugin name",
                      "defaultValue": "postgres12"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "9090"
                    },
                    "DBNAME": {
                      "isOptional": false,
                      "description": "Persistence database name",
                      "defaultValue": "temporal"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "ENABLE_ES": {
                      "isOptional": false,
                      "description": "Use Postgres visibility, not Elasticsearch",
                      "defaultValue": "false"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Server log verbosity",
                      "defaultValue": "info"
                    },
                    "BIND_ON_IP": {
                      "isOptional": false,
                      "description": "Dual-stack listen address",
                      "defaultValue": "::"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "description": "Shared with the other roles",
                      "defaultValue": "${{temporal-frontend.POSTGRES_PWD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Temporal's own database role",
                      "defaultValue": "temporal"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TEMPORAL_SERVICES": {
                      "isOptional": false,
                      "description": "Server role this service runs",
                      "defaultValue": "worker"
                    },
                    "VISIBILITY_DBNAME": {
                      "isOptional": false,
                      "description": "Visibility database name",
                      "defaultValue": "temporal_visibility"
                    },
                    "NUM_HISTORY_SHARDS": {
                      "isOptional": false,
                      "description": "Must match every other role",
                      "defaultValue": "512"
                    },
                    "PROMETHEUS_ENDPOINT": {
                      "isOptional": false,
                      "description": "Metrics listener address",
                      "defaultValue": "0.0.0.0:9090"
                    }
                  }
                },
                "5652e05c-3360-4fea-8ff9-da22b9cfe864": {
                  "icon": "https://cdn.simpleicons.org/temporal/FFFFFF",
                  "name": "temporal-ui",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "temporalio/ui:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Frontend gRPC address",
                      "defaultValue": "${{temporal-frontend.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "TEMPORAL_UI_PORT": {
                      "isOptional": false,
                      "description": "Web UI listening port",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed browser origin",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TEMPORAL_DEFAULT_NAMESPACE": {
                      "isOptional": false,
                      "description": "Namespace opened on load",
                      "defaultValue": "default"
                    },
                    "TEMPORAL_DISABLE_NEWS_FETCH": {
                      "isOptional": false,
                      "description": "No outbound call for release notes",
                      "defaultValue": "true"
                    },
                    "TEMPORAL_CSRF_COOKIE_INSECURE": {
                      "isOptional": false,
                      "description": "Keep the CSRF cookie Secure",
                      "defaultValue": "false"
                    }
                  }
                },
                "7de599e7-c243-47c3-a8a1-6ff202613837": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/temporal-railway",
                    "rootDirectory": "proxy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Caddy listening port",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "Web UI backend address",
                      "defaultValue": "${{temporal-ui.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "UI_PASSWORD": {
                      "isOptional": false,
                      "description": "Web UI password",
                      "defaultValue": "{{UI_PASSWORD}}"
                    },
                    "UI_USERNAME": {
                      "isOptional": false,
                      "description": "Web UI username",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "a78df8fe-182e-458d-9347-bf1313abed72": {
                  "icon": "https://cdn.simpleicons.org/temporal/FFFFFF",
                  "name": "temporal-history",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/temporal-railway",
                    "rootDirectory": "server"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": false,
                      "description": "Persistence plugin name",
                      "defaultValue": "postgres12"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "9090"
                    },
                    "DBNAME": {
                      "isOptional": false,
                      "description": "Persistence database name",
                      "defaultValue": "temporal"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "ENABLE_ES": {
                      "isOptional": false,
                      "description": "Use Postgres visibility, not Elasticsearch",
                      "defaultValue": "false"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Server log verbosity",
                      "defaultValue": "info"
                    },
                    "BIND_ON_IP": {
                      "isOptional": false,
                      "description": "Dual-stack listen address",
                      "defaultValue": "::"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "description": "Shared with the other roles",
                      "defaultValue": "${{temporal-frontend.POSTGRES_PWD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Temporal's own database role",
                      "defaultValue": "temporal"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TEMPORAL_SERVICES": {
                      "isOptional": false,
                      "description": "Server role this service runs",
                      "defaultValue": "history"
                    },
                    "VISIBILITY_DBNAME": {
                      "isOptional": false,
                      "description": "Visibility database name",
                      "defaultValue": "temporal_visibility"
                    },
                    "NUM_HISTORY_SHARDS": {
                      "isOptional": false,
                      "description": "Must match every other role",
                      "defaultValue": "512"
                    },
                    "PROMETHEUS_ENDPOINT": {
                      "isOptional": false,
                      "description": "Metrics listener address",
                      "defaultValue": "0.0.0.0:9090"
                    }
                  }
                },
                "cd61fe53-edd7-4001-a662-67b4e8a2ebb3": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/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": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "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": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "cd61fe53-edd7-4001-a662-67b4e8a2ebb3": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "e746c20f-a643-4dc3-8970-72debb82d99d": {
                  "icon": "https://cdn.simpleicons.org/temporal/FFFFFF",
                  "name": "temporal-frontend",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/temporal-railway",
                    "rootDirectory": "server"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": false,
                      "description": "Persistence plugin name",
                      "defaultValue": "postgres12"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "9090"
                    },
                    "DBNAME": {
                      "isOptional": false,
                      "description": "Persistence database name",
                      "defaultValue": "temporal"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "ENABLE_ES": {
                      "isOptional": false,
                      "description": "Use Postgres visibility, not Elasticsearch",
                      "defaultValue": "false"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Server log verbosity",
                      "defaultValue": "info"
                    },
                    "BIND_ON_IP": {
                      "isOptional": false,
                      "description": "Dual-stack listen address",
                      "defaultValue": "::"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "description": "Password for that role",
                      "defaultValue": "{{POSTGRES_PWD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Temporal's own database role",
                      "defaultValue": "temporal"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DEFAULT_NAMESPACE": {
                      "isOptional": false,
                      "description": "Namespace created at first boot",
                      "defaultValue": "default"
                    },
                    "TEMPORAL_SERVICES": {
                      "isOptional": false,
                      "description": "Server role this service runs",
                      "defaultValue": "frontend"
                    },
                    "VISIBILITY_DBNAME": {
                      "isOptional": false,
                      "description": "Visibility database name",
                      "defaultValue": "temporal_visibility"
                    },
                    "NUM_HISTORY_SHARDS": {
                      "isOptional": false,
                      "description": "Shard count, fixed at first boot",
                      "defaultValue": "512"
                    },
                    "PROMETHEUS_ENDPOINT": {
                      "isOptional": false,
                      "description": "Metrics listener address",
                      "defaultValue": "0.0.0.0:9090"
                    },
                    "TEMPORAL_SCHEMA_SETUP": {
                      "isOptional": false,
                      "description": "This role applies the schema",
                      "defaultValue": "true"
                    },
                    "DEFAULT_NAMESPACE_RETENTION": {
                      "isOptional": false,
                      "description": "Closed workflow history retention",
                      "defaultValue": "72h"
                    },
                    "TEMPORAL_ADMIN_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Superuser URL, first-boot provisioning only",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "TEMPORAL_REGISTER_DEFAULT_NAMESPACE": {
                      "isOptional": false,
                      "description": "This role registers the namespace",
                      "defaultValue": "true"
                    }
                  }
                },
                "f4b9f372-9897-40fd-9f94-cb83f9600fc7": {
                  "icon": "https://cdn.simpleicons.org/temporal/FFFFFF",
                  "name": "temporal-matching",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/temporal-railway",
                    "rootDirectory": "server"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": false,
                      "description": "Persistence plugin name",
                      "defaultValue": "postgres12"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "9090"
                    },
                    "DBNAME": {
                      "isOptional": false,
                      "description": "Persistence database name",
                      "defaultValue": "temporal"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "ENABLE_ES": {
                      "isOptional": false,
                      "description": "Use Postgres visibility, not Elasticsearch",
                      "defaultValue": "false"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Server log verbosity",
                      "defaultValue": "info"
                    },
                    "BIND_ON_IP": {
                      "isOptional": false,
                      "description": "Dual-stack listen address",
                      "defaultValue": "::"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "description": "Shared with the other roles",
                      "defaultValue": "${{temporal-frontend.POSTGRES_PWD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Temporal's own database role",
                      "defaultValue": "temporal"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TEMPORAL_SERVICES": {
                      "isOptional": false,
                      "description": "Server role this service runs",
                      "defaultValue": "matching"
                    },
                    "VISIBILITY_DBNAME": {
                      "isOptional": false,
                      "description": "Visibility database name",
                      "defaultValue": "temporal_visibility"
                    },
                    "NUM_HISTORY_SHARDS": {
                      "isOptional": false,
                      "description": "Must match every other role",
                      "defaultValue": "512"
                    },
                    "PROMETHEUS_ENDPOINT": {
                      "isOptional": false,
                      "description": "Metrics listener address",
                      "defaultValue": "0.0.0.0:9090"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 7,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T16:21:04.741Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f87ed077304848deb3c6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 104,
    "typical_build_seconds": 25,
    "typical_start_seconds": 10,
    "slowest_service": "temporal-ui"
  }
}
