{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8bba5c31-e170-45d1-a8c4-9570fdfd380d",
    "slug": "pgroonga",
    "name": "PGroonga",
    "description": "Enable super-fast, multilingual full-text search within PostgreSQL.",
    "url": "https://railway.com/deploy/pgroonga",
    "upstream": {
      "image": "groonga/pgroonga:latest-debian-18"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "PGroonga",
      "source": {
        "image": "groonga/pgroonga:latest-debian-18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "PGroonga",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGHOST",
      "service": "PGroonga",
      "description": "Public host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "PGroonga",
      "description": "Public port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "PGroonga",
      "description": "Postgres user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGMAJOR",
      "service": "PGroonga",
      "description": "The PostgreSQL major version",
      "secret": false,
      "strategy": "default",
      "default": "18"
    },
    {
      "key": "PGDATABASE",
      "service": "PGroonga",
      "description": "Default database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "PGroonga",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "PGroonga",
      "description": "Name of the default database",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "PGroonga",
      "description": "Public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "PGroonga",
      "description": "Name of the initial user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PGHOST_PRIVATE",
      "service": "PGroonga",
      "description": "Private domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT_PRIVATE",
      "service": "PGroonga",
      "description": "Private port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "PGroonga",
      "description": "The Postgres password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_URL_PRIVATE",
      "service": "PGroonga",
      "description": "Private URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pgroonga"
      }
    },
    "cli": "railway deploy --template pgroonga",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8bba5c31-e170-45d1-a8c4-9570fdfd380d",
            "serializedConfig": {
              "services": {
                "f1bc7b5b-ff80-48c8-850f-58c4afcf277f": {
                  "icon": "https://groonga.org/images/logos/pgroonga-icon-foreground-white.svg",
                  "name": "PGroonga",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"unset PGPORT; docker-entrypoint.sh postgres --port=5432\""
                  },
                  "source": {
                    "image": "groonga/pgroonga:latest-debian-18"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/${{PGMAJOR}}/docker"
                    },
                    "PGHOST": {
                      "description": "Public host",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Public port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "PGUSER": {
                      "description": "Postgres user",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGMAJOR": {
                      "description": "The PostgreSQL major version",
                      "defaultValue": "18"
                    },
                    "PGDATABASE": {
                      "description": "Default database",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Postgres password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Name of the default database",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "description": "Public URL",
                      "defaultValue": "postgres://${{PGUSER}}:${{PGPASSWORD}}@${{PGHOST}}:${{PGPORT}}/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Name of the initial user",
                      "defaultValue": "postgres"
                    },
                    "PGHOST_PRIVATE": {
                      "description": "Private domain",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT_PRIVATE": {
                      "description": "Private port",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "The Postgres password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_URL_PRIVATE": {
                      "description": "Private URL",
                      "defaultValue": "postgres://${{PGUSER}}:${{PGPASSWORD}}@${{PGHOST_PRIVATE}}:${{PGPORT_PRIVATE}}/${{PGDATABASE}}"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "f1bc7b5b-ff80-48c8-850f-58c4afcf277f": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T17:54:19.363Z",
  "generator_version": "0.1.0"
}
