{
  "manifest_version": "1.0.0",
  "template": {
    "id": "49c1d036-b47d-41e0-b0db-36304705be8d",
    "slug": "uptrace",
    "name": "Uptrace",
    "description": "OpenTelemetry APM on ClickHouse: traces, logs, metrics, alerts.",
    "url": "https://railway.com/deploy/uptrace",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/uptrace-railway"
    }
  },
  "services": [
    {
      "name": "clickhouse",
      "source": {
        "repo": "https://github.com/nomideusz/uptrace-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    },
    {
      "name": "uptrace",
      "source": {
        "repo": "https://github.com/nomideusz/uptrace-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "redis",
      "source": {
        "repo": "https://github.com/nomideusz/uptrace-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/nomideusz/uptrace-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "clickhouse",
      "description": "Auto-generated telemetry database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "uptrace",
      "description": "Port serving the UI and OTLP/HTTP ingest. Railway routes here. Don't change.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_ADDR",
      "service": "uptrace",
      "description": "Redis address. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_DB",
      "service": "uptrace",
      "description": "Postgres database. Must match the postgres service — don't change.",
      "secret": false,
      "strategy": "default",
      "default": "uptrace"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "uptrace",
      "description": "ClickHouse database. Must match the clickhouse service — don't change.",
      "secret": false,
      "strategy": "default",
      "default": "uptrace"
    },
    {
      "key": "POSTGRES_ADDR",
      "service": "uptrace",
      "description": "Postgres address. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "uptrace",
      "description": "Postgres user. Must match the postgres service — don't change.",
      "secret": false,
      "strategy": "default",
      "default": "uptrace"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "uptrace",
      "description": "Redis password. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "UPTRACE_SECRET",
      "service": "uptrace",
      "description": "Auto-generated key for signing sessions and tokens.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLICKHOUSE_ADDR",
      "service": "uptrace",
      "description": "ClickHouse native address. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "uptrace",
      "description": "ClickHouse user. Must match the clickhouse service — don't change.",
      "secret": false,
      "strategy": "default",
      "default": "uptrace"
    },
    {
      "key": "UPTRACE_SITE_URL",
      "service": "uptrace",
      "description": "Public base URL, wired to your Railway domain. Don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "uptrace",
      "description": "Postgres password. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "uptrace",
      "description": "ClickHouse password. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "UPTRACE_ADMIN_EMAIL",
      "service": "uptrace",
      "description": "Your login email. The admin account is created on first boot only.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "UPTRACE_PROJECT_TOKEN",
      "service": "uptrace",
      "description": "Ingest token for the seeded project. Your DSN is https://<this token>@<your domain>.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "UPTRACE_ADMIN_PASSWORD",
      "service": "uptrace",
      "description": "Auto-generated login password. Copy it from here to sign in, then change it in the UI.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "uptrace",
      "description": "Grace period for the first boot to run migrations and answer the healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "UPTRACE_SELF_MONITORING_DISABLED",
      "service": "uptrace",
      "description": "Uptrace tracing itself. Off because an idle instance writes ~1.3M spans/day. Set false to enable.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Auto-generated cache password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Auto-generated metadata database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "uptrace"
      }
    },
    "cli": "railway deploy --template uptrace",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "49c1d036-b47d-41e0-b0db-36304705be8d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2883108f-5d5b-4708-9a8a-d0ce2d95efd4": {
                  "icon": "https://devicons.railway.app/i/clickhouse.svg",
                  "name": "clickhouse",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/uptrace-railway",
                    "rootDirectory": "/clickhouse"
                  },
                  "variables": {
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated telemetry database password.",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "2883108f-5d5b-4708-9a8a-d0ce2d95efd4": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "5ed3f127-8e41-4ceb-9535-f1ed032925f0": {
                  "icon": "https://uptrace.dev/brand/logo-icon-dark.svg",
                  "name": "uptrace",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/uptrace-railway",
                    "rootDirectory": "/uptrace"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port serving the UI and OTLP/HTTP ingest. Railway routes here. Don't change.",
                      "defaultValue": "8080"
                    },
                    "REDIS_ADDR": {
                      "isOptional": false,
                      "description": "Redis address. Wired automatically — don't change.",
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Postgres database. Must match the postgres service — don't change.",
                      "defaultValue": "uptrace"
                    },
                    "CLICKHOUSE_DB": {
                      "isOptional": false,
                      "description": "ClickHouse database. Must match the clickhouse service — don't change.",
                      "defaultValue": "uptrace"
                    },
                    "POSTGRES_ADDR": {
                      "isOptional": false,
                      "description": "Postgres address. Wired automatically — don't change.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres user. Must match the postgres service — don't change.",
                      "defaultValue": "uptrace"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password. Wired automatically — don't change.",
                      "defaultValue": "${{redis.REDIS_PASSWORD}}"
                    },
                    "UPTRACE_SECRET": {
                      "isOptional": false,
                      "description": "Auto-generated key for signing sessions and tokens.",
                      "defaultValue": "{{UPTRACE_SECRET}}"
                    },
                    "CLICKHOUSE_ADDR": {
                      "isOptional": false,
                      "description": "ClickHouse native address. Wired automatically — don't change.",
                      "defaultValue": "${{clickhouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user. Must match the clickhouse service — don't change.",
                      "defaultValue": "uptrace"
                    },
                    "UPTRACE_SITE_URL": {
                      "isOptional": false,
                      "description": "Public base URL, wired to your Railway domain. Don't change.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password. Wired automatically — don't change.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "ClickHouse password. Wired automatically — don't change.",
                      "defaultValue": "${{clickhouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "UPTRACE_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Your login email. The admin account is created on first boot only.",
                      "defaultValue": "admin@example.com"
                    },
                    "UPTRACE_PROJECT_TOKEN": {
                      "isOptional": false,
                      "description": "Ingest token for the seeded project. Your DSN is https://<this token>@<your domain>.",
                      "defaultValue": "{{UPTRACE_PROJECT_TOKEN}}"
                    },
                    "UPTRACE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated login password. Copy it from here to sign in, then change it in the UI.",
                      "defaultValue": "{{UPTRACE_ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Grace period for the first boot to run migrations and answer the healthcheck.",
                      "defaultValue": "600"
                    },
                    "UPTRACE_SELF_MONITORING_DISABLED": {
                      "isOptional": true,
                      "description": "Uptrace tracing itself. Off because an idle instance writes ~1.3M spans/day. Set false to enable.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "66d575d2-cacc-4108-858f-a164afa84e3d": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/uptrace-railway",
                    "rootDirectory": "/redis"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated cache password.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  }
                },
                "e7996a84-1f0a-4e5f-be8c-a47c81eb94da": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/uptrace-railway",
                    "rootDirectory": "/postgres"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated metadata database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "e7996a84-1f0a-4e5f-be8c-a47c81eb94da": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "uptrace",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T07:41:26.270Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c2e4c7dbfa854a44b53f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 161,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "uptrace"
  }
}
