{
  "id": "metabase-postgres",
  "name": "Metabase with Postgres",
  "slogan": "Metabase business intelligence with its own application data kept in a bundled Postgres database instead of the built in file, so dashboards and questions survive upgrades and scale past a single user. Create the admin on first open.",
  "category": "Analytics",
  "categorySlug": "analytics",
  "tags": [
    "postgres",
    "multi-service"
  ],
  "license": {
    "spdx": "AGPL-3.0-or-later",
    "class": "network-copyleft"
  },
  "memoryMiB": 1536,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install metabase-postgres --name my-metabase-postgres",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/metabase-postgres/",
  "docsUrl": "https://www.metabase.com/docs/latest/installation-and-operation/configuring-application-database",
  "sourceRepo": "https://github.com/metabase/metabase",
  "markdownUrl": "https://levelrail.com/templates/metabase-postgres.md",
  "jsonUrl": "https://levelrail.com/templates/metabase-postgres.json",
  "indexable": true,
  "description": "Metabase business intelligence with its own application data kept in a bundled Postgres database instead of the built in file, so dashboards and questions survive upgrades and scale past a single user. Create the admin on first open.",
  "pinnedTag": "17.11-alpine",
  "licenseUrl": "https://github.com/metabase/metabase/blob/HEAD/LICENSE",
  "licenseClassLabel": "Network copyleft (AGPL) license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Open the page, create the admin account, then connect the databases you want to explore."
  ],
  "services": [
    {
      "name": "db",
      "image": "postgres",
      "tag": "17.11-alpine",
      "ports": [],
      "volumes": [
        "pgdata -> /var/lib/postgresql/data"
      ]
    },
    {
      "name": "metabase",
      "image": "metabase/metabase",
      "tag": "v0.65.4.1",
      "ports": [
        3000
      ],
      "volumes": []
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "db",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "POSTGRES_USER",
      "kind": "preset"
    },
    {
      "service": "metabase",
      "name": "JAVA_OPTS",
      "kind": "preset"
    },
    {
      "service": "metabase",
      "name": "MB_DB_DBNAME",
      "kind": "preset"
    },
    {
      "service": "metabase",
      "name": "MB_DB_HOST",
      "kind": "preset"
    },
    {
      "service": "metabase",
      "name": "MB_DB_PASS",
      "kind": "generated"
    },
    {
      "service": "metabase",
      "name": "MB_DB_PORT",
      "kind": "preset"
    },
    {
      "service": "metabase",
      "name": "MB_DB_TYPE",
      "kind": "preset"
    },
    {
      "service": "metabase",
      "name": "MB_DB_USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install metabase-postgres --name my-metabase-postgres",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/metabase-postgres/install \\\n  -d '{\n    \"name\": \"my-metabase-postgres\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install metabase-postgres --name my-metabase-postgres",
        "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/metabase-postgres/install \\\n  -d '{\n    \"name\": \"my-metabase-postgres\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
