{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9527db1d-a11d-4bbb-8af5-beb0266fc40d",
    "slug": "temporal-v1-durable-workflows-server",
    "name": "Temporal v1 Durable Workflows Server",
    "description": "Reliable, retryable workflows in any language. Temporal server plus Web UI.",
    "url": "https://railway.com/deploy/temporal-v1-durable-workflows-server",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/temporal-railway"
    }
  },
  "services": [
    {
      "name": "temporal-ui",
      "source": {
        "image": "temporalio/ui:2.55.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "temporal-ui-gateway",
      "source": {
        "repo": "https://github.com/baranberkay96/temporal-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "temporal",
      "source": {
        "repo": "https://github.com/baranberkay96/temporal-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "temporal-namespace",
      "source": {
        "image": "temporalio/admin-tools:1.32.1"
      },
      "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
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "temporal-ui",
      "description": "UI port (private only; exposed through temporal-ui-gateway).",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "temporal-ui",
      "description": "Temporal frontend (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TEMPORAL_UI_PORT",
      "service": "temporal-ui",
      "description": "Port the UI server listens on.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_AUTH_ENABLED",
      "service": "temporal-ui",
      "description": "Set true and fill TEMPORAL_AUTH_* to add OIDC login on top of basic auth.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TEMPORAL_CORS_ORIGINS",
      "service": "temporal-ui",
      "description": "Public origin of the UI (gateway domain).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TEMPORAL_DEFAULT_NAMESPACE",
      "service": "temporal-ui",
      "description": "Namespace opened by default.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "PORT",
      "service": "temporal-ui-gateway",
      "description": "Gateway port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM_URL",
      "service": "temporal-ui-gateway",
      "description": "Private address of the UI service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BASIC_AUTH_PASSWORD",
      "service": "temporal-ui-gateway",
      "description": "Password for the Temporal Web UI (generated; hashed with bcrypt at start).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "BASIC_AUTH_USERNAME",
      "service": "temporal-ui-gateway",
      "description": "Login for the Temporal Web UI.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DB",
      "service": "temporal",
      "description": "Persistence plugin (PostgreSQL 12+ SQL plugin, as in upstream compose).",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "PORT",
      "service": "temporal",
      "description": "Frontend HTTP API port; Railway probes /api/v1/system-info on it.",
      "secret": false,
      "strategy": "default",
      "default": "7243"
    },
    {
      "key": "DBNAME",
      "service": "temporal",
      "description": "Persistence database.",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "DB_PORT",
      "service": "temporal",
      "description": "PostgreSQL port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "LOG_LEVEL",
      "service": "temporal",
      "description": "Server log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BIND_ON_IP",
      "service": "temporal",
      "description": "Listen on all IPv4+IPv6 interfaces (private network + optional TCP proxy).",
      "secret": false,
      "strategy": "default",
      "default": "::0"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal",
      "description": "PostgreSQL password.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal",
      "description": "PostgreSQL user (needs CREATE DATABASE on first deploy).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal",
      "description": "PostgreSQL host (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "temporal",
      "description": "gRPC address other Railway services use (copy into your workers).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "VISIBILITY_DBNAME",
      "service": "temporal",
      "description": "Visibility database (SQL advanced visibility on PostgreSQL).",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility"
    },
    {
      "key": "NUM_HISTORY_SHARDS",
      "service": "temporal",
      "description": "History shards. FIXED at first start; cannot be changed later. 512 = Temporal's small-production guidance.",
      "secret": false,
      "strategy": "default",
      "default": "512"
    },
    {
      "key": "TEMPORAL_BROADCAST_ADDRESS",
      "service": "temporal",
      "description": "Membership/cluster address for this single-node (all roles) server.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "temporal",
      "description": "Graceful shutdown window.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "temporal-namespace",
      "description": "Temporal frontend (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEFAULT_NAMESPACE",
      "service": "temporal-namespace",
      "description": "Namespace created on first deploy.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "DEFAULT_NAMESPACE_RETENTION",
      "service": "temporal-namespace",
      "description": "Retention of closed workflow histories in that namespace.",
      "secret": false,
      "strategy": "default",
      "default": "7d"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "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": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "temporal-v1-durable-workflows-server"
      }
    },
    "cli": "railway deploy --template temporal-v1-durable-workflows-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9527db1d-a11d-4bbb-8af5-beb0266fc40d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0ae4b630-530b-57fb-9ccc-8d7f1c5425b1": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "temporal-ui",
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "temporalio/ui:2.55.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "UI port (private only; exposed through temporal-ui-gateway).",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Temporal frontend (private network).",
                      "defaultValue": "${{temporal.TEMPORAL_ADDRESS}}"
                    },
                    "TEMPORAL_UI_PORT": {
                      "isOptional": true,
                      "description": "Port the UI server listens on.",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_AUTH_ENABLED": {
                      "isOptional": true,
                      "description": "Set true and fill TEMPORAL_AUTH_* to add OIDC login on top of basic auth.",
                      "defaultValue": "false"
                    },
                    "TEMPORAL_CORS_ORIGINS": {
                      "isOptional": true,
                      "description": "Public origin of the UI (gateway domain).",
                      "defaultValue": "https://${{temporal-ui-gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TEMPORAL_DEFAULT_NAMESPACE": {
                      "isOptional": true,
                      "description": "Namespace opened by default.",
                      "defaultValue": "default"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "5b1dd2cb-5488-514a-86c0-efbfd2bd1efb": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "temporal-ui-gateway",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/temporal-railway",
                    "branch": "main",
                    "rootDirectory": "/services/ui-gateway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Gateway port.",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM_URL": {
                      "isOptional": false,
                      "description": "Private address of the UI service.",
                      "defaultValue": "http://${{temporal-ui.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the Temporal Web UI (generated; hashed with bcrypt at start).",
                      "defaultValue": "{{BASIC_AUTH_PASSWORD}}"
                    },
                    "BASIC_AUTH_USERNAME": {
                      "isOptional": false,
                      "description": "Login for the Temporal Web UI.",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "60ac6317-4cca-56c3-81b4-61d5d53c9f45": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "temporal",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/v1/system-info",
                    "preDeployCommand": [
                      "/etc/temporal/railway/setup-schema.sh"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/temporal-railway",
                    "branch": "main",
                    "rootDirectory": "/services/temporal"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": false,
                      "description": "Persistence plugin (PostgreSQL 12+ SQL plugin, as in upstream compose).",
                      "defaultValue": "postgres12"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Frontend HTTP API port; Railway probes /api/v1/system-info on it.",
                      "defaultValue": "7243"
                    },
                    "DBNAME": {
                      "isOptional": true,
                      "description": "Persistence database.",
                      "defaultValue": "temporal"
                    },
                    "DB_PORT": {
                      "isOptional": true,
                      "description": "PostgreSQL port.",
                      "defaultValue": "5432"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Server log level.",
                      "defaultValue": "info"
                    },
                    "BIND_ON_IP": {
                      "isOptional": true,
                      "description": "Listen on all IPv4+IPv6 interfaces (private network + optional TCP proxy).",
                      "defaultValue": "::0"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "description": "PostgreSQL password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL user (needs CREATE DATABASE on first deploy).",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "description": "PostgreSQL host (private network).",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": true,
                      "description": "gRPC address other Railway services use (copy into your workers).",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "VISIBILITY_DBNAME": {
                      "isOptional": true,
                      "description": "Visibility database (SQL advanced visibility on PostgreSQL).",
                      "defaultValue": "temporal_visibility"
                    },
                    "NUM_HISTORY_SHARDS": {
                      "isOptional": true,
                      "description": "History shards. FIXED at first start; cannot be changed later. 512 = Temporal's small-production guidance.",
                      "defaultValue": "512"
                    },
                    "TEMPORAL_BROADCAST_ADDRESS": {
                      "isOptional": true,
                      "description": "Membership/cluster address for this single-node (all roles) server.",
                      "defaultValue": "127.0.0.1"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Graceful shutdown window.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "b84e9027-6cab-5aae-9b0d-ae7a06328fd1": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "temporal-namespace",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'i=0; until temporal operator cluster health --address \"$TEMPORAL_ADDRESS\"; do i=$((i+1)); [ \"$i\" -ge 90 ] && echo \"Temporal frontend not healthy\" && exit 1; echo \"waiting for Temporal frontend ($i)\"; sleep 10; done; if temporal operator namespace describe -n \"$DEFAULT_NAMESPACE\" --address \"$TEMPORAL_ADDRESS\" >/dev/null 2>&1; then echo \"namespace $DEFAULT_NAMESPACE already exists\"; else temporal operator namespace create -n \"$DEFAULT_NAMESPACE\" --retention \"$DEFAULT_NAMESPACE_RETENTION\" --address \"$TEMPORAL_ADDRESS\"; fi'",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "image": "temporalio/admin-tools:1.32.1"
                  },
                  "variables": {
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Temporal frontend (private network).",
                      "defaultValue": "${{temporal.TEMPORAL_ADDRESS}}"
                    },
                    "DEFAULT_NAMESPACE": {
                      "isOptional": true,
                      "description": "Namespace created on first deploy.",
                      "defaultValue": "default"
                    },
                    "DEFAULT_NAMESPACE_RETENTION": {
                      "isOptional": true,
                      "description": "Retention of closed workflow histories in that namespace.",
                      "defaultValue": "7d"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "e83015fb-f372-54b6-ad0d-0f78fadf0288": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "1ce0d65c-3272-5d3a-816a-89c2073723fb": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "temporal-ui-gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T16:14:40.554Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T14:37:05.598Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1447e24265f040c2b1cc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 161,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "temporal-namespace"
  }
}
