{
  "id": "gitea-postgres",
  "name": "Gitea (Postgres)",
  "slogan": "Gitea backed by Postgres instead of its default MySQL, for operators standardizing on one database engine.",
  "category": "Developer Tools",
  "categorySlug": "developer-tools",
  "tags": [
    "postgres",
    "multi-service"
  ],
  "license": {
    "spdx": "MIT",
    "class": "permissive"
  },
  "memoryMiB": 512,
  "architectures": {
    "amd64": "published",
    "arm64": "published"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install gitea-postgres --name my-gitea-postgres",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/gitea-postgres/",
  "docsUrl": "https://docs.gitea.com",
  "sourceRepo": "https://github.com/go-gitea/gitea",
  "markdownUrl": "https://levelrail.com/templates/gitea-postgres.md",
  "jsonUrl": "https://levelrail.com/templates/gitea-postgres.json",
  "indexable": true,
  "description": "Gitea backed by Postgres instead of its default MySQL, for operators standardizing on one database engine. Runs 2 containers (db, gitea), with gitea listening on port 3000; data is kept in named volumes.",
  "pinnedTag": "16-alpine",
  "licenseUrl": "https://github.com/go-gitea/gitea/blob/main/LICENSE",
  "licenseClassLabel": "Permissive license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [],
  "services": [
    {
      "name": "db",
      "image": "postgres",
      "tag": "16-alpine",
      "ports": [],
      "volumes": [
        "gitea_postgres_db_data -> /var/lib/postgresql/data"
      ]
    },
    {
      "name": "gitea",
      "image": "gitea/gitea",
      "tag": "1.23.1",
      "ports": [
        3000,
        22
      ],
      "volumes": [
        "gitea_postgres_data -> /data"
      ]
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "db",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "POSTGRES_USER",
      "kind": "preset"
    },
    {
      "service": "gitea",
      "name": "GITEA__database__DB_TYPE",
      "kind": "preset"
    },
    {
      "service": "gitea",
      "name": "GITEA__database__HOST",
      "kind": "preset"
    },
    {
      "service": "gitea",
      "name": "GITEA__database__NAME",
      "kind": "preset"
    },
    {
      "service": "gitea",
      "name": "GITEA__database__PASSWD",
      "kind": "generated"
    },
    {
      "service": "gitea",
      "name": "GITEA__database__USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates deploy gitea-postgres --name my-gitea-postgres",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/gitea-postgres/deploy",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates deploy gitea-postgres --name my-gitea-postgres"
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/gitea-postgres/deploy",
        "note": "Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove."
      }
    ]
  }
}
