{
  "id": "postgres-pgweb",
  "name": "PostgreSQL with pgweb",
  "slogan": "A PostgreSQL 17 server paired with the pgweb browser console, already wired together. The database is not published on the host, so other services in this project reach it at db:5432. pgweb opens straight into the database with the generated credentials, so keep its address private.",
  "category": "Database Tools",
  "categorySlug": "database-tools",
  "tags": [
    "postgres",
    "multi-service"
  ],
  "license": {
    "spdx": "MIT",
    "class": "permissive"
  },
  "memoryMiB": 384,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install postgres-pgweb --name my-postgres-pgweb",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/postgres-pgweb/",
  "docsUrl": "https://github.com/sosedoff/pgweb/wiki",
  "sourceRepo": "https://github.com/sosedoff/pgweb",
  "markdownUrl": "https://levelrail.com/templates/postgres-pgweb.md",
  "jsonUrl": "https://levelrail.com/templates/postgres-pgweb.json",
  "indexable": true,
  "description": "A PostgreSQL 17 server paired with the pgweb browser console, already wired together. The database is not published on the host, so other services in this project reach it at db:5432. pgweb opens straight into the database with the generated credentials, so keep its address private.",
  "pinnedTag": "17.11-alpine",
  "licenseUrl": "https://github.com/sosedoff/pgweb/blob/main/LICENSE",
  "licenseClassLabel": "Permissive license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Open the page, the console is already connected to the bundled database."
  ],
  "services": [
    {
      "name": "db",
      "image": "postgres",
      "tag": "17.11-alpine",
      "ports": [],
      "volumes": [
        "pgdata -> /var/lib/postgresql/data"
      ]
    },
    {
      "name": "pgweb",
      "image": "sosedoff/pgweb",
      "tag": "0.17.0",
      "ports": [
        8081
      ],
      "volumes": []
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "pgweb",
      "name": "PGWEB_DATABASE_URL",
      "kind": "generated"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install postgres-pgweb --name my-postgres-pgweb",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/postgres-pgweb/install \\\n  -d '{\n    \"name\": \"my-postgres-pgweb\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install postgres-pgweb --name my-postgres-pgweb",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=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-pgweb/install \\\n  -d '{\n    \"name\": \"my-postgres-pgweb\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
