{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ed473a7d-a2ae-4850-b921-f61bc613412d",
    "slug": "jaeger-1",
    "name": "Jaeger",
    "description": "Jaeger 2.21 OpenTelemetry tracing with Badger storage and auth gateway.",
    "url": "https://railway.com/deploy/jaeger-1",
    "upstream": {
      "image": "caddy:2.11.4-alpine"
    }
  },
  "services": [
    {
      "name": "jaeger",
      "source": {
        "image": "jaegertracing/jaeger:2.21.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/badger",
      "http": false
    },
    {
      "name": "gateway",
      "source": {
        "image": "caddy:2.11.4-alpine"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "jaeger",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "16686"
    },
    {
      "key": "JAEGER_CONFIG",
      "service": "jaeger",
      "description": "Provide a value for JAEGER_CONFIG.",
      "secret": false,
      "strategy": "default",
      "default": "service:\n  extensions: [jaeger_storage, jaeger_query, healthcheckv2]\n  pipelines:\n    traces:\n      receivers: [otlp]\n      processors: [batch]\n      exporters: [jaeger_storage_exporter]\n  telemetry:\n    resource:\n      service.name: jaeger\n    logs:\n      level: info\n\nextensions:\n  healthcheckv2:\n    use_v2: true\n    http:\n      endpoint: '[::]:13133'\n\n  jaeger_query:\n    storage:\n      traces: badger_store\n    http:\n      endpoint: '[::]:16686'\n    grpc:\n      endpoint: '[::]:16685'\n\n  jaeger_storage:\n    backends:\n      badger_store:\n        badger:\n          directories:\n            keys: /badger/keys\n            values: /badger/values\n          ephemeral: false\n          ttl:\n            spans: ${env:JAEGER_SPAN_TTL:-168h}\n\nreceivers:\n  otlp:\n    protocols:\n      grpc:\n        endpoint: '[::]:4317'\n      http:\n        endpoint: '[::]:4318'\n\nprocessors:\n  batch:\n\nexporters:\n  jaeger_storage_exporter:\n    trace_storage: badger_store"
    },
    {
      "key": "JAEGER_SPAN_TTL",
      "service": "jaeger",
      "description": "Provide a value for JAEGER_SPAN_TTL.",
      "secret": false,
      "strategy": "default",
      "default": "168h"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "jaeger",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "JAEGER_OTLP_GRPC_ENDPOINT",
      "service": "jaeger",
      "description": "Provide a value for JAEGER_OTLP_GRPC_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "JAEGER_OTLP_HTTP_ENDPOINT",
      "service": "jaeger",
      "description": "Provide a value for JAEGER_OTLP_HTTP_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "jaeger",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "gateway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CADDYFILE",
      "service": "gateway",
      "description": "Provide a value for CADDYFILE.",
      "secret": false,
      "strategy": "default",
      "default": "{\n\tadmin off\n\tauto_https off\n}\n\n:{$PORT} {\n\thandle /healthz {\n\t\trespond ok 200\n\t}\n\n\t@ingest {\n\t\tpath /v1/traces\n\t\theader Authorization `Bearer {$OTLP_INGEST_TOKEN}`\n\t}\n\thandle @ingest {\n\t\treverse_proxy {$JAEGER_OTLP_HTTP_UPSTREAM}\n\t}\n\n\thandle /v1/* {\n\t\trespond Unauthorized 401\n\t}\n\n\thandle {\n\t\tbasic_auth {\n\t\t\t{$JAEGER_UI_USERNAME} {$JAEGER_UI_PASSWORD_HASH}\n\t\t}\n\t\treverse_proxy {$JAEGER_UI_UPSTREAM}\n\t}\n}"
    },
    {
      "key": "OTLP_INGEST_TOKEN",
      "service": "gateway",
      "description": "Provide a value for OTLP_INGEST_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JAEGER_UI_PASSWORD",
      "service": "gateway",
      "description": "Provide a value for JAEGER_UI_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "JAEGER_UI_UPSTREAM",
      "service": "gateway",
      "description": "Provide a value for JAEGER_UI_UPSTREAM.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "JAEGER_UI_USERNAME",
      "service": "gateway",
      "description": "Provide a value for JAEGER_UI_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "OTLP_PUBLIC_ENDPOINT",
      "service": "gateway",
      "description": "Provide a value for OTLP_PUBLIC_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "JAEGER_OTLP_HTTP_UPSTREAM",
      "service": "gateway",
      "description": "Provide a value for JAEGER_OTLP_HTTP_UPSTREAM.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "jaeger-1"
      }
    },
    "cli": "railway deploy --template jaeger-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ed473a7d-a2ae-4850-b921-f61bc613412d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2bce8d88-f541-40f9-9b29-b272b4ba8231": {
                  "icon": "https://raw.githubusercontent.com/jaegertracing/jaeger-ui/v2.21.0/packages/jaeger-ui/src/img/jaeger-logo.svg",
                  "name": "jaeger",
                  "deploy": {
                    "startCommand": "/cmd/jaeger/jaeger-linux --config env:JAEGER_CONFIG",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "jaegertracing/jaeger:2.21.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "16686"
                    },
                    "JAEGER_CONFIG": {
                      "isOptional": false,
                      "defaultValue": "service:\n  extensions: [jaeger_storage, jaeger_query, healthcheckv2]\n  pipelines:\n    traces:\n      receivers: [otlp]\n      processors: [batch]\n      exporters: [jaeger_storage_exporter]\n  telemetry:\n    resource:\n      service.name: jaeger\n    logs:\n      level: info\n\nextensions:\n  healthcheckv2:\n    use_v2: true\n    http:\n      endpoint: '[::]:13133'\n\n  jaeger_query:\n    storage:\n      traces: badger_store\n    http:\n      endpoint: '[::]:16686'\n    grpc:\n      endpoint: '[::]:16685'\n\n  jaeger_storage:\n    backends:\n      badger_store:\n        badger:\n          directories:\n            keys: /badger/keys\n            values: /badger/values\n          ephemeral: false\n          ttl:\n            spans: ${env:JAEGER_SPAN_TTL:-168h}\n\nreceivers:\n  otlp:\n    protocols:\n      grpc:\n        endpoint: '[::]:4317'\n      http:\n        endpoint: '[::]:4318'\n\nprocessors:\n  batch:\n\nexporters:\n  jaeger_storage_exporter:\n    trace_storage: badger_store"
                    },
                    "JAEGER_SPAN_TTL": {
                      "isOptional": false,
                      "defaultValue": "168h"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "JAEGER_OTLP_GRPC_ENDPOINT": {
                      "isOptional": false,
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:4317"
                    },
                    "JAEGER_OTLP_HTTP_ENDPOINT": {
                      "isOptional": false,
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:4318"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "30"
                    }
                  },
                  "volumeMounts": {
                    "2bce8d88-f541-40f9-9b29-b272b4ba8231": {
                      "mountPath": "/badger"
                    }
                  }
                },
                "bd01d7ec-ceb5-484d-a41e-3aadfca3ed6c": {
                  "icon": "https://raw.githubusercontent.com/caddyserver/website/5c921006aae4feb2184782ae528c2bb09a07e04f/src/resources/images/favicon.png",
                  "name": "gateway",
                  "deploy": {
                    "startCommand": "sh -c 'export JAEGER_UI_PASSWORD_HASH=\"$(caddy hash-password --plaintext \"$JAEGER_UI_PASSWORD\")\" && printf \"%s\\n\" \"$CADDYFILE\" > /tmp/Caddyfile && exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2.11.4-alpine"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    },
                    "CADDYFILE": {
                      "isOptional": false,
                      "defaultValue": "{\n\tadmin off\n\tauto_https off\n}\n\n:{$PORT} {\n\thandle /healthz {\n\t\trespond ok 200\n\t}\n\n\t@ingest {\n\t\tpath /v1/traces\n\t\theader Authorization `Bearer {$OTLP_INGEST_TOKEN}`\n\t}\n\thandle @ingest {\n\t\treverse_proxy {$JAEGER_OTLP_HTTP_UPSTREAM}\n\t}\n\n\thandle /v1/* {\n\t\trespond Unauthorized 401\n\t}\n\n\thandle {\n\t\tbasic_auth {\n\t\t\t{$JAEGER_UI_USERNAME} {$JAEGER_UI_PASSWORD_HASH}\n\t\t}\n\t\treverse_proxy {$JAEGER_UI_UPSTREAM}\n\t}\n}"
                    },
                    "OTLP_INGEST_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{OTLP_INGEST_TOKEN}}"
                    },
                    "JAEGER_UI_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{JAEGER_UI_PASSWORD}}"
                    },
                    "JAEGER_UI_UPSTREAM": {
                      "isOptional": false,
                      "defaultValue": "${{jaeger.RAILWAY_PRIVATE_DOMAIN}}:16686"
                    },
                    "JAEGER_UI_USERNAME": {
                      "isOptional": false,
                      "defaultValue": "admin"
                    },
                    "OTLP_PUBLIC_ENDPOINT": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "JAEGER_OTLP_HTTP_UPSTREAM": {
                      "isOptional": false,
                      "defaultValue": "${{jaeger.RAILWAY_PRIVATE_DOMAIN}}:4318"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T22:14:45.316Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-23T21:02:53.705Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_85504b912b0f4aaf95ea",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 28,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "gateway"
  }
}
