{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7cfdc044-fc80-4a29-8701-e56567a7f697",
    "slug": "temporal-workflow-engine",
    "name": "Temporal | Open Source AWS Step Functions Alternative",
    "description": "Self-host Temporal. Durable Workflow Engine for workflow Orchestration",
    "url": "https://railway.com/deploy/temporal-workflow-engine",
    "upstream": {
      "image": "temporalio/ui"
    }
  },
  "services": [
    {
      "name": "temporal-admin-tools",
      "source": {
        "image": "temporalio/admin-tools"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "temporal_server",
      "source": {
        "image": "temporalio/auto-setup"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "temporal-postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "temporal-ui",
      "source": {
        "image": "temporalio/ui"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "elasticsearch-railway",
      "source": {
        "repo": "https://github.com/praveen-ks-2001/elasticsearch-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/esdata",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "temporal-admin-tools",
      "description": "Temporal server gRPC endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_CLI_ADDRESS",
      "service": "temporal-admin-tools",
      "description": "CLI endpoint for Temporal server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB",
      "service": "temporal_server",
      "description": "Database backend engine type",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "ES_PWD",
      "service": "temporal_server",
      "description": "Elasticsearch authentication password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "temporal_server",
      "description": "Database server port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ES_PORT",
      "service": "temporal_server",
      "description": "Elasticsearch server port",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_USER",
      "service": "temporal_server",
      "description": "Elasticsearch authentication username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_SEEDS",
      "service": "temporal_server",
      "description": "Elasticsearch cluster seed hosts",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_ES",
      "service": "temporal_server",
      "description": "Enable Elasticsearch advanced visibility",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_SCHEME",
      "service": "temporal_server",
      "description": "Elasticsearch connection protocol scheme",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "BIND_ON_IP",
      "service": "temporal_server",
      "description": "Bind Temporal services on all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "ES_VERSION",
      "service": "temporal_server",
      "description": "Elasticsearch major version compatibility",
      "secret": false,
      "strategy": "default",
      "default": "v7"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal_server",
      "description": "Postgres database authentication password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal_server",
      "description": "Postgres database authentication username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal_server",
      "description": "Postgres database host address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "temporal_server",
      "description": "Local Temporal server listening address",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1:7233"
    },
    {
      "key": "DEFAULT_NAMESPACE",
      "service": "temporal_server",
      "description": "Default Temporal namespace name",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "TEMPORAL_NAMESPACE",
      "service": "temporal_server",
      "description": "Namespace used for Temporal workflows",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "TEMPORAL_BROADCAST_ADDRESS",
      "service": "temporal_server",
      "description": "Broadcast address for cluster communication",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "SKIP_DEFAULT_NAMESPACE_CREATION",
      "service": "temporal_server",
      "description": "Skip automatic default namespace creation",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PGDATA",
      "service": "temporal-postgres",
      "description": "Postgres data storage directory",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "temporal-postgres",
      "description": "Internal Postgres host address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "temporal-postgres",
      "description": "Postgres server listening port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "temporal-postgres",
      "description": "Default Postgres username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "temporal-postgres",
      "description": "Default database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "temporal-postgres",
      "description": "Password for Postgres user",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "temporal-postgres",
      "description": "Initial Temporal database name",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "DATABASE_URL",
      "service": "temporal-postgres",
      "description": "Internal Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal-postgres",
      "description": "Temporal database service user",
      "secret": false,
      "strategy": "default",
      "default": "temporal"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "temporal-postgres",
      "description": "Self-signed SSL certificate validity",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "temporal-postgres",
      "description": "Run container using root user",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "temporal-postgres",
      "description": "Postgres database user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "temporal-postgres",
      "description": "Public Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "temporal-postgres",
      "description": "Graceful shutdown draining duration",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "temporal-ui",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "temporal-ui",
      "description": "Temporal server gRPC endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_UI_PORT",
      "service": "temporal-ui",
      "description": "Temporal UI web server port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_CORS_ORIGINS",
      "service": "temporal-ui",
      "description": "Allowed CORS origins for UI",
      "secret": false,
      "strategy": "default",
      "default": "http://localhost:3000"
    },
    {
      "key": "PORT",
      "service": "elasticsearch-railway",
      "description": "Elasticsearch HTTP API port",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "elasticsearch-railway",
      "description": "JVM heap memory configuration",
      "secret": false,
      "strategy": "default",
      "default": "-Xms256m -Xmx512m"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "elasticsearch-railway",
      "description": "Elasticsearch cluster authentication password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ELASTIC_USERNAME",
      "service": "elasticsearch-railway",
      "description": "Elasticsearch default superuser name",
      "secret": false,
      "strategy": "default",
      "default": "elastic"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "temporal-workflow-engine"
      }
    },
    "cli": "railway deploy --template temporal-workflow-engine",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7cfdc044-fc80-4a29-8701-e56567a7f697",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0591c6a8-8e26-4bf4-be16-0487ecb0da49": {
                  "icon": "https://djeqr6to3dedg.cloudfront.net/repo-logos/temporalio/admin-tools/live/logo-1731448348189.png",
                  "name": "temporal-admin-tools",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "temporalio/admin-tools"
                  },
                  "variables": {
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Temporal server gRPC endpoint",
                      "defaultValue": "${{temporal_server.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "TEMPORAL_CLI_ADDRESS": {
                      "isOptional": false,
                      "description": "CLI endpoint for Temporal server",
                      "defaultValue": "${{temporal_server.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    }
                  }
                },
                "a3f4bab1-9af9-4d08-93f1-f651aff73eab": {
                  "icon": "https://docs.temporal.io/img/favicon.png",
                  "name": "temporal_server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "temporalio/auto-setup"
                  },
                  "variables": {
                    "DB": {
                      "isOptional": false,
                      "description": "Database backend engine type",
                      "defaultValue": "postgres12"
                    },
                    "ES_PWD": {
                      "isOptional": false,
                      "description": "Elasticsearch authentication password",
                      "defaultValue": "${{elasticsearch-railway.ELASTIC_PASSWORD}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Database server port",
                      "defaultValue": "5432"
                    },
                    "ES_PORT": {
                      "isOptional": false,
                      "description": "Elasticsearch server port",
                      "defaultValue": "9200"
                    },
                    "ES_USER": {
                      "isOptional": false,
                      "description": "Elasticsearch authentication username",
                      "defaultValue": "${{elasticsearch-railway.ELASTIC_USERNAME}}"
                    },
                    "ES_SEEDS": {
                      "isOptional": false,
                      "description": "Elasticsearch cluster seed hosts",
                      "defaultValue": "${{elasticsearch-railway.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ENABLE_ES": {
                      "isOptional": false,
                      "description": "Enable Elasticsearch advanced visibility",
                      "defaultValue": "true"
                    },
                    "ES_SCHEME": {
                      "isOptional": false,
                      "description": "Elasticsearch connection protocol scheme",
                      "defaultValue": "http"
                    },
                    "BIND_ON_IP": {
                      "isOptional": false,
                      "description": "Bind Temporal services on all interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "ES_VERSION": {
                      "isOptional": false,
                      "description": "Elasticsearch major version compatibility",
                      "defaultValue": "v7"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "description": "Postgres database authentication password",
                      "defaultValue": "${{temporal-postgres.PGPASSWORD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres database authentication username",
                      "defaultValue": "${{temporal-postgres.PGUSER}}"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "description": "Postgres database host address",
                      "defaultValue": "${{temporal-postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Local Temporal server listening address",
                      "defaultValue": "127.0.0.1:7233"
                    },
                    "DEFAULT_NAMESPACE": {
                      "isOptional": false,
                      "description": "Default Temporal namespace name",
                      "defaultValue": "default"
                    },
                    "TEMPORAL_NAMESPACE": {
                      "isOptional": false,
                      "description": "Namespace used for Temporal workflows",
                      "defaultValue": "default"
                    },
                    "TEMPORAL_BROADCAST_ADDRESS": {
                      "isOptional": false,
                      "description": "Broadcast address for cluster communication",
                      "defaultValue": "127.0.0.1"
                    },
                    "SKIP_DEFAULT_NAMESPACE_CREATION": {
                      "isOptional": false,
                      "description": "Skip automatic default namespace creation",
                      "defaultValue": "false"
                    }
                  }
                },
                "a8ca0efe-0515-48e3-ac26-22777f64db48": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "temporal-postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data storage directory",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal Postgres host address",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres server listening port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Default Postgres username",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for Postgres user",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial Temporal database name",
                      "defaultValue": "temporal"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal Postgres connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Temporal database service user",
                      "defaultValue": "temporal"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Self-signed SSL certificate validity",
                      "defaultValue": "820"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run container using root user",
                      "defaultValue": "0"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres database user password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public Postgres connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown draining duration",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "a8ca0efe-0515-48e3-ac26-22777f64db48": {
                      "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."
                  }
                },
                "ac94ebf8-4565-44a2-9f8a-2e6f33758c2c": {
                  "icon": "https://docs.temporal.io/img/favicon.png",
                  "name": "temporal-ui",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "temporalio/ui"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Temporal server gRPC endpoint",
                      "defaultValue": "${{temporal_server.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "TEMPORAL_UI_PORT": {
                      "isOptional": false,
                      "description": "Temporal UI web server port",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed CORS origins for UI",
                      "defaultValue": "http://localhost:3000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "db825241-5b54-4b3e-b5fe-cc8c33c4d58b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/elasticsearch.svg",
                  "name": "elasticsearch-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/praveen-ks-2001/elasticsearch-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Elasticsearch HTTP API port",
                      "defaultValue": "9200"
                    },
                    "ES_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap memory configuration",
                      "defaultValue": "-Xms256m -Xmx512m"
                    },
                    "ELASTIC_PASSWORD": {
                      "isOptional": false,
                      "description": "Elasticsearch cluster authentication password",
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "ELASTIC_USERNAME": {
                      "isOptional": false,
                      "description": "Elasticsearch default superuser name",
                      "defaultValue": "elastic"
                    }
                  },
                  "volumeMounts": {
                    "db825241-5b54-4b3e-b5fe-cc8c33c4d58b": {
                      "mountPath": "/esdata"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T17:10:43.633Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ecb50caa202e49c7a671",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 192,
    "typical_build_seconds": 0,
    "typical_start_seconds": 5,
    "slowest_service": "temporal-admin-tools"
  }
}
