{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fb8fedea-1ddc-4030-9fb2-4d5b9b6c0a81",
    "slug": "temporal",
    "name": "Temporal",
    "description": "Open source durable execution platform (seperate services + scaling)",
    "url": "https://railway.com/deploy/temporal",
    "upstream": {
      "image": "ghcr.io/brody192/railway-caddy-basic-auth:main"
    }
  },
  "services": [
    {
      "name": "Temporal Matching",
      "source": {
        "repo": "https://github.com/6ixfalls/railway-temporal"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Temporal Worker",
      "source": {
        "repo": "https://github.com/6ixfalls/railway-temporal"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Elasticsearch",
      "source": {
        "repo": "https://github.com/railwayapp-templates/elasticsearch"
      },
      "needs_volume": true,
      "volume_mount_path": "/esdata",
      "http": false
    },
    {
      "name": "Temporal Basic Auth",
      "source": {
        "image": "ghcr.io/brody192/railway-caddy-basic-auth:main"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Temporal History",
      "source": {
        "repo": "https://github.com/6ixfalls/railway-temporal"
      },
      "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 UI",
      "source": {
        "image": "temporalio/ui:2.49.1"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Temporal Frontend",
      "source": {
        "repo": "https://github.com/6ixfalls/railway-temporal"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DB",
      "service": "Temporal Matching",
      "description": "Database Type - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "postgres12_pgx"
    },
    {
      "key": "DBNAME",
      "service": "Temporal Matching",
      "description": "Database Name - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PWD",
      "service": "Temporal Matching",
      "description": "Elasticsearch Password - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "Temporal Matching",
      "description": "Database Port - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PORT",
      "service": "Temporal Matching",
      "description": "Elasticsearch Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_USER",
      "service": "Temporal Matching",
      "description": "Elasticsearch User - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_SEEDS",
      "service": "Temporal Matching",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_ES",
      "service": "Temporal Matching",
      "description": "Enable Elasticsearch - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_SCHEME",
      "service": "Temporal Matching",
      "description": "Elasticsearch Scheme",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "BIND_ON_IP",
      "service": "Temporal Matching",
      "description": "IP to bind on - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "::0"
    },
    {
      "key": "ES_VERSION",
      "service": "Temporal Matching",
      "description": "Elasticsearch Major Version - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "v7"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "Temporal Matching",
      "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 Matching",
      "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 Matching",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Temporal Matching",
      "description": "Private Temporal Address. - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_SERVICES",
      "service": "Temporal Matching",
      "description": "Temporal Service to run.",
      "secret": false,
      "strategy": "default",
      "default": "matching"
    },
    {
      "key": "ES_VISIBILITY_INDEX",
      "service": "Temporal Matching",
      "description": "Elasticsearch Visibility Index - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility_v1_dev"
    },
    {
      "key": "TEMPORAL_CLI_ADDRESS",
      "service": "Temporal Matching",
      "description": "Temporal Frontend Address - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB",
      "service": "Temporal Worker",
      "description": "Database Type - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "postgres12_pgx"
    },
    {
      "key": "DBNAME",
      "service": "Temporal Worker",
      "description": "Database Name - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PWD",
      "service": "Temporal Worker",
      "description": "Elasticsearch Password - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "Temporal Worker",
      "description": "Database Port - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PORT",
      "service": "Temporal Worker",
      "description": "Elasticsearch Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_USER",
      "service": "Temporal Worker",
      "description": "Elasticsearch User - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_SEEDS",
      "service": "Temporal Worker",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_ES",
      "service": "Temporal Worker",
      "description": "Enable Elasticsearch - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_SCHEME",
      "service": "Temporal Worker",
      "description": "Elasticsearch Scheme",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "BIND_ON_IP",
      "service": "Temporal Worker",
      "description": "IP to bind on - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "::0"
    },
    {
      "key": "ES_VERSION",
      "service": "Temporal Worker",
      "description": "Elasticsearch Major Version - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "v7"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "Temporal Worker",
      "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 Worker",
      "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 Worker",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Temporal Worker",
      "description": "Private Temporal Address. - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_SERVICES",
      "service": "Temporal Worker",
      "description": "Temporal Service to run.",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "ES_VISIBILITY_INDEX",
      "service": "Temporal Worker",
      "description": "Elasticsearch Visibility Index - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility_v1_dev"
    },
    {
      "key": "TEMPORAL_CLI_ADDRESS",
      "service": "Temporal Worker",
      "description": "Temporal Frontend Address - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "Elasticsearch",
      "description": "Port that Elasticsearch will run on",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "Elasticsearch",
      "description": "The minimum and max heap size that Elasticsearch can use",
      "secret": false,
      "strategy": "default",
      "default": "-Xms500m -Xmx4g"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "Elasticsearch",
      "description": "Password for Elasticsearch",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ELASTIC_USERNAME",
      "service": "Elasticsearch",
      "description": "Username for Elasticsearch",
      "secret": false,
      "strategy": "default",
      "default": "elastic"
    },
    {
      "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"
    },
    {
      "key": "DB",
      "service": "Temporal History",
      "description": "Database Type - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "postgres12_pgx"
    },
    {
      "key": "DBNAME",
      "service": "Temporal History",
      "description": "Database Name - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PWD",
      "service": "Temporal History",
      "description": "Elasticsearch Password - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "Temporal History",
      "description": "Database Port - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PORT",
      "service": "Temporal History",
      "description": "Elasticsearch Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_USER",
      "service": "Temporal History",
      "description": "Elasticsearch User - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_SEEDS",
      "service": "Temporal History",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_ES",
      "service": "Temporal History",
      "description": "Enable Elasticsearch - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_SCHEME",
      "service": "Temporal History",
      "description": "Elasticsearch Scheme",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "BIND_ON_IP",
      "service": "Temporal History",
      "description": "IP to bind on - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "::0"
    },
    {
      "key": "ES_VERSION",
      "service": "Temporal History",
      "description": "Elasticsearch Major Version - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "v7"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "Temporal History",
      "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 History",
      "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 History",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Temporal History",
      "description": "Private Temporal Address. - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_SERVICES",
      "service": "Temporal History",
      "description": "Temporal Service to run.",
      "secret": false,
      "strategy": "default",
      "default": "history"
    },
    {
      "key": "ES_VISIBILITY_INDEX",
      "service": "Temporal History",
      "description": "Elasticsearch Visibility Index - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility_v1_dev"
    },
    {
      "key": "TEMPORAL_CLI_ADDRESS",
      "service": "Temporal History",
      "description": "Temporal Frontend Address - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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"
    },
    {
      "key": "PORT",
      "service": "Temporal UI",
      "description": "Port the UI is listening on - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Temporal UI",
      "description": "Internal address of the temporal server - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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 - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB",
      "service": "Temporal Frontend",
      "description": "Database Type - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "postgres12_pgx"
    },
    {
      "key": "PORT",
      "service": "Temporal Frontend",
      "description": "Post temporal is listening on - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "7233"
    },
    {
      "key": "DBNAME",
      "service": "Temporal Frontend",
      "description": "Database Name - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PWD",
      "service": "Temporal Frontend",
      "description": "Elasticsearch Password - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "Temporal Frontend",
      "description": "Database Port - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_PORT",
      "service": "Temporal Frontend",
      "description": "Elasticsearch Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_USER",
      "service": "Temporal Frontend",
      "description": "Elasticsearch User - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ES_SEEDS",
      "service": "Temporal Frontend",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_ES",
      "service": "Temporal Frontend",
      "description": "Enable Elasticsearch - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ES_SCHEME",
      "service": "Temporal Frontend",
      "description": "Elasticsearch Scheme",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "BIND_ON_IP",
      "service": "Temporal Frontend",
      "description": "IP to bind on - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "::0"
    },
    {
      "key": "ES_VERSION",
      "service": "Temporal Frontend",
      "description": "Elasticsearch Major Version - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "v7"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "Temporal Frontend",
      "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 Frontend",
      "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 Frontend",
      "description": "Database Host - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Temporal Frontend",
      "description": "Private Temporal Address. - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_SERVICES",
      "service": "Temporal Frontend",
      "description": "Temporal Service to run.",
      "secret": false,
      "strategy": "default",
      "default": "frontend"
    },
    {
      "key": "ES_VISIBILITY_INDEX",
      "service": "Temporal Frontend",
      "description": "Elasticsearch Visibility Index - You likely don't need to change this!",
      "secret": false,
      "strategy": "default",
      "default": "temporal_visibility_v1_dev"
    },
    {
      "key": "TEMPORAL_CLI_ADDRESS",
      "service": "Temporal Frontend",
      "description": "Temporal Frontend Address - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PUBLIC_FRONTEND_ADDRESS",
      "service": "Temporal Frontend",
      "description": "Public Temporal Frontend Address - You likely don't need to change this!",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "temporal"
      }
    },
    "cli": "railway deploy --template temporal",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fb8fedea-1ddc-4030-9fb2-4d5b9b6c0a81",
            "serializedConfig": {
              "services": {
                "123cd8d7-398f-4c46-8a2b-2eeb3d1deae4": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "Temporal Matching",
                  "source": {
                    "repo": "6ixfalls/railway-temporal"
                  },
                  "variables": {
                    "DB": {
                      "description": "Database Type - You likely don't need to change this!",
                      "defaultValue": "postgres12_pgx"
                    },
                    "DBNAME": {
                      "description": "Database Name - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "ES_PWD": {
                      "description": "Elasticsearch Password - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.ELASTIC_PASSWORD}}"
                    },
                    "DB_PORT": {
                      "description": "Database Port - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.RAILWAY_TCP_APPLICATION_PORT}}"
                    },
                    "ES_PORT": {
                      "description": "Elasticsearch Port",
                      "defaultValue": "${{Elasticsearch.PORT}}"
                    },
                    "ES_USER": {
                      "description": "Elasticsearch User - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.ELASTIC_USERNAME}}"
                    },
                    "ES_SEEDS": {
                      "description": "Database Host - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ENABLE_ES": {
                      "description": "Enable Elasticsearch - You likely don't need to change this!",
                      "defaultValue": "true"
                    },
                    "ES_SCHEME": {
                      "description": "Elasticsearch Scheme",
                      "defaultValue": "http"
                    },
                    "BIND_ON_IP": {
                      "description": "IP to bind on - You likely don't need to change this!",
                      "defaultValue": "::0"
                    },
                    "ES_VERSION": {
                      "description": "Elasticsearch Major Version - You likely don't need to change this!",
                      "defaultValue": "v7"
                    },
                    "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}}"
                    },
                    "TEMPORAL_ADDRESS": {
                      "description": "Private Temporal Address. - You likely don't need to change this!",
                      "defaultValue": "${{\"Temporal Frontend\".RAILWAY_PRIVATE_DOMAIN}}:${{\"Temporal Frontend\".PORT}}"
                    },
                    "TEMPORAL_SERVICES": {
                      "description": "Temporal Service to run.",
                      "defaultValue": "matching"
                    },
                    "ES_VISIBILITY_INDEX": {
                      "description": "Elasticsearch Visibility Index - You likely don't need to change this!",
                      "defaultValue": "temporal_visibility_v1_dev"
                    },
                    "TEMPORAL_CLI_ADDRESS": {
                      "description": "Temporal Frontend Address - You likely don't need to change this!",
                      "defaultValue": "${{TEMPORAL_ADDRESS}}"
                    }
                  }
                },
                "178835a2-6dfb-4a4f-95b1-91aee58b6d98": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "Temporal Worker",
                  "source": {
                    "repo": "6ixfalls/railway-temporal"
                  },
                  "variables": {
                    "DB": {
                      "description": "Database Type - You likely don't need to change this!",
                      "defaultValue": "postgres12_pgx"
                    },
                    "DBNAME": {
                      "description": "Database Name - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "ES_PWD": {
                      "description": "Elasticsearch Password - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.ELASTIC_PASSWORD}}"
                    },
                    "DB_PORT": {
                      "description": "Database Port - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.RAILWAY_TCP_APPLICATION_PORT}}"
                    },
                    "ES_PORT": {
                      "description": "Elasticsearch Port",
                      "defaultValue": "${{Elasticsearch.PORT}}"
                    },
                    "ES_USER": {
                      "description": "Elasticsearch User - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.ELASTIC_USERNAME}}"
                    },
                    "ES_SEEDS": {
                      "description": "Database Host - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ENABLE_ES": {
                      "description": "Enable Elasticsearch - You likely don't need to change this!",
                      "defaultValue": "true"
                    },
                    "ES_SCHEME": {
                      "description": "Elasticsearch Scheme",
                      "defaultValue": "http"
                    },
                    "BIND_ON_IP": {
                      "description": "IP to bind on - You likely don't need to change this!",
                      "defaultValue": "::0"
                    },
                    "ES_VERSION": {
                      "description": "Elasticsearch Major Version - You likely don't need to change this!",
                      "defaultValue": "v7"
                    },
                    "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}}"
                    },
                    "TEMPORAL_ADDRESS": {
                      "description": "Private Temporal Address. - You likely don't need to change this!",
                      "defaultValue": "${{\"Temporal Frontend\".RAILWAY_PRIVATE_DOMAIN}}:${{\"Temporal Frontend\".PORT}}"
                    },
                    "TEMPORAL_SERVICES": {
                      "description": "Temporal Service to run.",
                      "defaultValue": "worker"
                    },
                    "ES_VISIBILITY_INDEX": {
                      "description": "Elasticsearch Visibility Index - You likely don't need to change this!",
                      "defaultValue": "temporal_visibility_v1_dev"
                    },
                    "TEMPORAL_CLI_ADDRESS": {
                      "description": "Temporal Frontend Address - You likely don't need to change this!",
                      "defaultValue": "${{TEMPORAL_ADDRESS}}"
                    }
                  }
                },
                "5f508aac-1021-4564-a8af-88393fbcf0b8": {
                  "icon": "https://cdn.worldvectorlogo.com/logos/elasticsearch.svg",
                  "name": "Elasticsearch",
                  "deploy": {
                    "healthcheckPath": "/_cluster/health"
                  },
                  "source": {
                    "repo": "railwayapp-templates/elasticsearch",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port that Elasticsearch will run on",
                      "defaultValue": "9200"
                    },
                    "ES_JAVA_OPTS": {
                      "description": "The minimum and max heap size that Elasticsearch can use",
                      "defaultValue": "-Xms500m -Xmx4g"
                    },
                    "ELASTIC_PASSWORD": {
                      "description": "Password for Elasticsearch",
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "ELASTIC_USERNAME": {
                      "description": "Username for Elasticsearch",
                      "defaultValue": "elastic"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "5f508aac-1021-4564-a8af-88393fbcf0b8": {
                      "mountPath": "/esdata"
                    }
                  }
                },
                "65879c25-24da-4dfd-a065-995f639eeba1": {
                  "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>": {}
                    }
                  }
                },
                "8827d8b5-1085-4026-8b8d-578c6a4cb0e0": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "Temporal History",
                  "source": {
                    "repo": "6ixfalls/railway-temporal"
                  },
                  "variables": {
                    "DB": {
                      "description": "Database Type - You likely don't need to change this!",
                      "defaultValue": "postgres12_pgx"
                    },
                    "DBNAME": {
                      "description": "Database Name - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "ES_PWD": {
                      "description": "Elasticsearch Password - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.ELASTIC_PASSWORD}}"
                    },
                    "DB_PORT": {
                      "description": "Database Port - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.RAILWAY_TCP_APPLICATION_PORT}}"
                    },
                    "ES_PORT": {
                      "description": "Elasticsearch Port",
                      "defaultValue": "${{Elasticsearch.PORT}}"
                    },
                    "ES_USER": {
                      "description": "Elasticsearch User - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.ELASTIC_USERNAME}}"
                    },
                    "ES_SEEDS": {
                      "description": "Database Host - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ENABLE_ES": {
                      "description": "Enable Elasticsearch - You likely don't need to change this!",
                      "defaultValue": "true"
                    },
                    "ES_SCHEME": {
                      "description": "Elasticsearch Scheme",
                      "defaultValue": "http"
                    },
                    "BIND_ON_IP": {
                      "isOptional": false,
                      "description": "IP to bind on - You likely don't need to change this!",
                      "defaultValue": "::0"
                    },
                    "ES_VERSION": {
                      "description": "Elasticsearch Major Version - You likely don't need to change this!",
                      "defaultValue": "v7"
                    },
                    "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}}"
                    },
                    "TEMPORAL_ADDRESS": {
                      "description": "Private Temporal Address. - You likely don't need to change this!",
                      "defaultValue": "${{\"Temporal Frontend\".RAILWAY_PRIVATE_DOMAIN}}:${{\"Temporal Frontend\".PORT}}"
                    },
                    "TEMPORAL_SERVICES": {
                      "description": "Temporal Service to run.",
                      "defaultValue": "history"
                    },
                    "ES_VISIBILITY_INDEX": {
                      "description": "Elasticsearch Visibility Index - You likely don't need to change this!",
                      "defaultValue": "temporal_visibility_v1_dev"
                    },
                    "TEMPORAL_CLI_ADDRESS": {
                      "description": "Temporal Frontend Address - You likely don't need to change this!",
                      "defaultValue": "${{TEMPORAL_ADDRESS}}"
                    }
                  }
                },
                "a4841a4d-b6d2-40f9-bd26-d07a1a2ac6c6": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "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"
                    }
                  },
                  "volumeMounts": {
                    "a4841a4d-b6d2-40f9-bd26-d07a1a2ac6c6": {
                      "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."
                  }
                },
                "a5b34836-ce11-4668-bf45-69a3ee28f597": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "Temporal UI",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "temporalio/ui:2.49.1",
                    "rootDirectory": "/ui/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the UI is listening on - You likely don't need to change this!",
                      "defaultValue": "8080"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Internal address of the temporal server - You likely don't need to change this!",
                      "defaultValue": "${{\"Temporal Frontend\".TEMPORAL_ADDRESS}}"
                    },
                    "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 - You likely don't need to change this!",
                      "defaultValue": "https://${{Temporal Basic Auth.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TEMPORAL_AUTH_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Client ID for OIDC",
                      "defaultValue": ""
                    },
                    "TEMPORAL_AUTH_CALLBACK_URL": {
                      "isOptional": true,
                      "description": "Callback URL for OIDC",
                      "defaultValue": ""
                    },
                    "TEMPORAL_AUTH_PROVIDER_URL": {
                      "isOptional": true,
                      "description": "Provider URL for OIDC",
                      "defaultValue": ""
                    },
                    "TEMPORAL_AUTH_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Client secret for OIDC",
                      "defaultValue": ""
                    }
                  },
                  "networking": {},
                  "volumeMounts": {}
                },
                "e70a7984-da4e-45d3-83c0-b452b2dc1446": {
                  "icon": "https://temporal.io/favicon.svg",
                  "name": "Temporal Frontend",
                  "deploy": {
                    "preDeployCommand": [
                      "/etc/temporal/setup.sh"
                    ]
                  },
                  "source": {
                    "repo": "6ixfalls/railway-temporal"
                  },
                  "variables": {
                    "DB": {
                      "description": "Database Type - You likely don't need to change this!",
                      "defaultValue": "postgres12_pgx"
                    },
                    "PORT": {
                      "description": "Post temporal is listening on - You likely don't need to change this!",
                      "defaultValue": "7233"
                    },
                    "DBNAME": {
                      "description": "Database Name - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "ES_PWD": {
                      "description": "Elasticsearch Password - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.ELASTIC_PASSWORD}}"
                    },
                    "DB_PORT": {
                      "description": "Database Port - You likely don't need to change this!",
                      "defaultValue": "${{Postgres.RAILWAY_TCP_APPLICATION_PORT}}"
                    },
                    "ES_PORT": {
                      "description": "Elasticsearch Port",
                      "defaultValue": "${{Elasticsearch.PORT}}"
                    },
                    "ES_USER": {
                      "description": "Elasticsearch User - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.ELASTIC_USERNAME}}"
                    },
                    "ES_SEEDS": {
                      "description": "Database Host - You likely don't need to change this!",
                      "defaultValue": "${{Elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ENABLE_ES": {
                      "description": "Enable Elasticsearch - You likely don't need to change this!",
                      "defaultValue": "true"
                    },
                    "ES_SCHEME": {
                      "description": "Elasticsearch Scheme",
                      "defaultValue": "http"
                    },
                    "BIND_ON_IP": {
                      "description": "IP to bind on - You likely don't need to change this!",
                      "defaultValue": "::0"
                    },
                    "ES_VERSION": {
                      "description": "Elasticsearch Major Version - You likely don't need to change this!",
                      "defaultValue": "v7"
                    },
                    "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}}"
                    },
                    "TEMPORAL_ADDRESS": {
                      "description": "Private Temporal Address. - You likely don't need to change this!",
                      "defaultValue": "${{\"Temporal Frontend\".RAILWAY_PRIVATE_DOMAIN}}:${{\"Temporal Frontend\".PORT}}"
                    },
                    "TEMPORAL_SERVICES": {
                      "description": "Temporal Service to run.",
                      "defaultValue": "frontend"
                    },
                    "ES_VISIBILITY_INDEX": {
                      "description": "Elasticsearch Visibility Index - You likely don't need to change this!",
                      "defaultValue": "temporal_visibility_v1_dev"
                    },
                    "TEMPORAL_CLI_ADDRESS": {
                      "description": "Temporal Frontend Address - You likely don't need to change this!",
                      "defaultValue": "${{TEMPORAL_ADDRESS}}"
                    },
                    "PUBLIC_FRONTEND_ADDRESS": {
                      "description": "Public Temporal Frontend Address - You likely don't need to change this!",
                      "defaultValue": "${{TEMPORAL_ADDRESS}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 8,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T05:08:40.964Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6d9695135f274cdaa7a7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 175,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Temporal UI"
  }
}
