{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dfd7af56-c706-4ccc-b8f5-c0414e103d24",
    "slug": "temporal-starter",
    "name": "Temporal Starter Package",
    "description": "Deploys repository-configured Temporal with two example apps.",
    "url": "https://railway.com/deploy/temporal-starter",
    "upstream": {
      "image": "ghcr.io/brody192/railway-caddy-basic-auth:main"
    }
  },
  "services": [
    {
      "name": "Temporal",
      "source": {
        "repo": "https://github.com/railwayapp-templates/temporal"
      },
      "needs_volume": false,
      "tcp_ports": [
        7233
      ],
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Client",
      "source": {
        "repo": "https://github.com/railwayapp-templates/temporal"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Temporal UI",
      "source": {
        "image": "temporalio/ui"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Temporal Basic Auth",
      "source": {
        "image": "ghcr.io/brody192/railway-caddy-basic-auth:main"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Worker",
      "source": {
        "repo": "https://github.com/railwayapp-templates/temporal"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DB",
      "service": "Temporal",
      "description": "Database Type",
      "secret": false,
      "strategy": "default",
      "default": "postgresql"
    },
    {
      "key": "PORT",
      "service": "Temporal",
      "description": "Post temporal is listening on",
      "secret": false,
      "strategy": "default",
      "default": "7233"
    },
    {
      "key": "DBNAME",
      "service": "Temporal",
      "description": "Database Name - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "Temporal",
      "description": "Database Port - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "Temporal",
      "description": "Database Password - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Temporal",
      "description": "Database User - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "Temporal",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "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 TCP Proxy Domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "reference_variable"
    },
    {
      "key": "PGPRIVATEHOST",
      "service": "Postgres",
      "description": "Railway Private Domain",
      "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": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "Temporal UI",
      "description": "Port the UI is listening on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Temporal UI",
      "description": "Internal address of the temporal server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_AUTH_ENABLED",
      "service": "Temporal UI",
      "description": "UI is exposed by default, use auth in production",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TEMPORAL_CORS_ORIGINS",
      "service": "Temporal UI",
      "description": "Domain for CORS Origins",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PASSWORD",
      "service": "Temporal Basic Auth",
      "description": "Provide a value for PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "USERNAME",
      "service": "Temporal Basic Auth",
      "description": "Provide a value for USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "PROXY_PASS",
      "service": "Temporal Basic Auth",
      "description": "Provide a value for PROXY_PASS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "temporal-starter"
      }
    },
    "cli": "railway deploy --template temporal-starter",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dfd7af56-c706-4ccc-b8f5-c0414e103d24",
            "serializedConfig": {
              "services": {
                "0e0e0b3a-ed9d-4850-a820-55dcb20703eb": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "Temporal",
                  "source": {
                    "repo": "railwayapp-templates/temporal",
                    "branch": null,
                    "rootDirectory": "/temporal"
                  },
                  "variables": {
                    "DB": {
                      "description": "Database Type",
                      "defaultValue": "postgresql"
                    },
                    "PORT": {
                      "description": "Post temporal is listening on",
                      "defaultValue": "7233"
                    },
                    "DBNAME": {
                      "description": "Database Name - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DB_PORT": {
                      "description": "Database Port - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.RAILWAY_TCP_APPLICATION_PORT}}"
                    },
                    "POSTGRES_PWD": {
                      "description": "Database Password - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Database User - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "POSTGRES_SEEDS": {
                      "description": "Database Host - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "7233": {}
                    }
                  }
                },
                "21b3ae58-e53b-4143-98a6-7681de1d8cab": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:latest"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway TCP Proxy Domain",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "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_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "PGPRIVATEHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "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}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "21b3ae58-e53b-4143-98a6-7681de1d8cab": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "58c7641c-e78b-4c0a-8e76-50f5d7afa6ad": {
                  "name": "Client",
                  "deploy": {
                    "startCommand": "npm run workflow"
                  },
                  "source": {
                    "repo": "railwayapp-templates/temporal",
                    "branch": null,
                    "rootDirectory": "/hello-world"
                  }
                },
                "c19f6543-de57-44d2-a196-f56f92547654": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "Temporal UI",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "temporalio/ui",
                    "rootDirectory": "/ui/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the UI is listening on",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Internal address of the temporal server",
                      "defaultValue": "${{Temporal.RAILWAY_PRIVATE_DOMAIN}}:${{Temporal.RAILWAY_TCP_APPLICATION_PORT}}"
                    },
                    "TEMPORAL_AUTH_ENABLED": {
                      "isOptional": true,
                      "description": "UI is exposed by default, use auth in production",
                      "defaultValue": "false"
                    },
                    "TEMPORAL_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Domain for CORS Origins",
                      "defaultValue": "https://${{Temporal UI.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TEMPORAL_AUTH_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Client ID for OIDC"
                    },
                    "TEMPORAL_AUTH_CALLBACK_URL": {
                      "isOptional": true,
                      "description": "Callback URL for OIDC"
                    },
                    "TEMPORAL_AUTH_PROVIDER_URL": {
                      "isOptional": true,
                      "description": "Provider URL for OIDC"
                    },
                    "TEMPORAL_AUTH_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Client secret for OIDC",
                      "defaultValue": ""
                    }
                  },
                  "networking": {},
                  "volumeMounts": {}
                },
                "c2587254-d5a1-4527-b2ea-3c264f5d0557": {
                  "icon": "https://caddyserver.com/resources/images/favicon.png",
                  "name": "Temporal Basic Auth",
                  "source": {
                    "image": "ghcr.io/brody192/railway-caddy-basic-auth:main"
                  },
                  "variables": {
                    "PASSWORD": {
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "USERNAME": {
                      "defaultValue": "railway"
                    },
                    "PROXY_PASS": {
                      "defaultValue": "http://${{Temporal UI.RAILWAY_PRIVATE_DOMAIN}}:${{Temporal UI.PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "d6963032-9ce2-4866-a8d6-a0ea2404fb20": {
                  "name": "Worker",
                  "deploy": {
                    "startCommand": "npm run start"
                  },
                  "source": {
                    "repo": "railwayapp-templates/temporal",
                    "branch": null,
                    "rootDirectory": "/hello-world"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T05:06:58.884Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b4019c7ea5cc464a80e8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 168,
    "typical_build_seconds": 82,
    "typical_start_seconds": 0,
    "slowest_service": "Client"
  }
}
