{
  "id": "timescaledb",
  "name": "TimescaleDB",
  "slogan": "PostgreSQL with the TimescaleDB extension for time series data, with a persistent volume and a generated password. The core is Apache-2.0 and some features fall under the Timescale License. It is not published on the host, so reach it from other services in this project at timescaledb:5432.",
  "category": "Database Tools",
  "categorySlug": "database-tools",
  "tags": [
    "single-container"
  ],
  "license": {
    "spdx": "LicenseRef-Timescale",
    "class": "source-available"
  },
  "memoryMiB": 512,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install timescaledb --name my-timescaledb",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/timescaledb/",
  "docsUrl": "https://docs.timescale.com/",
  "sourceRepo": "https://github.com/timescale/timescaledb",
  "markdownUrl": "https://levelrail.com/templates/timescaledb.md",
  "jsonUrl": "https://levelrail.com/templates/timescaledb.json",
  "indexable": true,
  "description": "PostgreSQL with the TimescaleDB extension for time series data, with a persistent volume and a generated password. The core is Apache-2.0 and some features fall under the Timescale License. It is not published on the host, so reach it from other services in this project at timescaledb:5432.",
  "pinnedTag": "2.30.2-pg17",
  "licenseUrl": "https://github.com/timescale/timescaledb/blob/main/LICENSE",
  "licenseClassLabel": "Source available",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Read the generated password from the app secrets, connect from a service in the same project, The extension is already created in the default database. Run CREATE EXTENSION IF NOT EXISTS timescaledb in any other database you add."
  ],
  "services": [
    {
      "name": "timescaledb",
      "image": "timescale/timescaledb",
      "tag": "2.30.2-pg17",
      "ports": [
        5432
      ],
      "volumes": [
        "tsdata -> /var/lib/postgresql/data"
      ]
    }
  ],
  "env": [
    {
      "service": "timescaledb",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "timescaledb",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "timescaledb",
      "name": "POSTGRES_USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install timescaledb --name my-timescaledb",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/timescaledb/install \\\n  -d '{\n    \"name\": \"my-timescaledb\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install timescaledb --name my-timescaledb",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain timescaledb=app.example.com."
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/timescaledb/install \\\n  -d '{\n    \"name\": \"my-timescaledb\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
