{
  "manifest_version": "1.0.0",
  "template": {
    "id": "07373cc8-b302-4830-99a5-215c3255e372",
    "slug": "timescaledb-1",
    "name": "TimescaleDB [Updated Sep '26]",
    "description": "TimescaleDB [Sep '26] (Time-Series Database Built on Postgres) Self Host",
    "url": "https://railway.com/deploy/timescaledb-1",
    "upstream": {
      "repo_url": "https://github.com/shruti060701/timescaledb-railway"
    }
  },
  "services": [
    {
      "name": "timescaledb-railway",
      "source": {
        "repo": "https://github.com/shruti060701/timescaledb-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "timescaledb-railway",
      "description": "Directory where Postgres stores its data files. Must be a subdirectory of the volume mount, not the mount root itself, or `initdb` fails on the volume's own `lost+found` directory, already-established lesson from this project's other raw-Postgres-based templates.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "timescaledb-railway",
      "description": "Default database name created on startup. The `timescaledb` extension is pre-created here automatically, no manual `CREATE EXTENSION` step needed.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "timescaledb-railway",
      "description": "Full connection string for other services in the same project to connect to this database over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "timescaledb-railway",
      "description": "Superuser username for the database.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "timescaledb-railway",
      "description": "Superuser password. Auto-generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "timescaledb-1"
      }
    },
    "cli": "railway deploy --template timescaledb-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "07373cc8-b302-4830-99a5-215c3255e372",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "91b154d7-03e7-4bf7-ad6b-d2a13fba3817": {
                  "icon": "https://devicons.railway.app/i/timescale-light.svg",
                  "name": "timescaledb-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/timescaledb-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Directory where Postgres stores its data files. Must be a subdirectory of the volume mount, not the mount root itself, or `initdb` fails on the volume's own `lost+found` directory, already-established lesson from this project's other raw-Postgres-based templates.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database name created on startup. The `timescaledb` extension is pre-created here automatically, no manual `CREATE EXTENSION` step needed.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Full connection string for other services in the same project to connect to this database over Railway's private network.",
                      "defaultValue": "postgresql://postgres:40f546d1ccf07567c17e8bda9ff80c6f@${{RAILWAY_PRIVATE_DOMAIN}}:5432/railway"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Superuser username for the database.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password. Auto-generated per deploy.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "91b154d7-03e7-4bf7-ad6b-d2a13fba3817": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T09:20:20.962Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c39fdc4e829d4b3482c9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 88,
    "typical_build_seconds": 22,
    "typical_start_seconds": 10,
    "slowest_service": "timescaledb-railway"
  }
}
