{
  "id": "postgres",
  "name": "PostgreSQL",
  "slogan": "The PostgreSQL relational database server on the official Alpine image, with a persistent volume and a generated password. It is not published on the host, so reach it from other services in this project at postgres:5432.",
  "category": "Database Tools",
  "categorySlug": "database-tools",
  "tags": [
    "postgres",
    "single-container"
  ],
  "license": {
    "spdx": "PostgreSQL",
    "class": "permissive"
  },
  "memoryMiB": 256,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install postgres --name my-postgres",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/postgres/",
  "docsUrl": "https://www.postgresql.org/docs/17/",
  "sourceRepo": "https://github.com/postgres/postgres",
  "markdownUrl": "https://levelrail.com/templates/postgres.md",
  "jsonUrl": "https://levelrail.com/templates/postgres.json",
  "indexable": true,
  "description": "The PostgreSQL relational database server on the official Alpine image, with a persistent volume and a generated password. It is not published on the host, so reach it from other services in this project at postgres:5432.",
  "pinnedTag": "17.11-alpine",
  "licenseUrl": "https://www.postgresql.org/about/licence/",
  "licenseClassLabel": "Permissive license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Read the generated password from the app secrets, then connect with psql or any client from a service in the same project."
  ],
  "services": [
    {
      "name": "postgres",
      "image": "postgres",
      "tag": "17.11-alpine",
      "ports": [
        5432
      ],
      "volumes": [
        "pgdata -> /var/lib/postgresql/data"
      ]
    }
  ],
  "env": [
    {
      "service": "postgres",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "postgres",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "postgres",
      "name": "POSTGRES_USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install postgres --name my-postgres",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/postgres/install \\\n  -d '{\n    \"name\": \"my-postgres\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install postgres --name my-postgres",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain postgres=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/postgres/install \\\n  -d '{\n    \"name\": \"my-postgres\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
